部署单机版elasticsearch报错

在macos上部署单机版es,遇到一些问题,做个记录
1、es服务启动报错:received plaintext http traffic on an https channel, closing connection

错误信息

错误原因:ES8默认开启了 ssl 认证。
解决方案:elasticsearch.yml配置文件
xpack.security.enabled设置为false

xpack.security.enabled: false

2、二次启动报错:org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active

错误信息

错误原因:es启动时会去更新地图的一些数据库,这里直接禁掉即可
ingest.geoip.downloader.enabled: false
解决方案:配置文件conf/elasticsearch.yml,增加配置

ingest.geoip.downloader.enabled: false

访问http://localhost:9200/出现以下信息,数名es服务启动成功

{
  "name" : "duyanyongdeMacBook-Air.local",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "185C-etyQ7293kHZcol5tA",
  "version" : {
    "number" : "8.6.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "2d58d0f136141f03239816a4e360a8d17b6d8f29",
    "build_date" : "2023-02-13T09:35:20.314882762Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.2",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容