在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"
}