{"type": "server", "timestamp": "2022-05-27T07:24:11,958Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "elasticsearch", "node.name": "234e4baad6ab", "message": "uncaught exception in thread [main]",

以上的错误是来自docker20.10.16环境下部署elasticsearch:7.6.2

命令:

docker run --name es -p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" \
-e ES_JAVA_OPTS="-Xms128m -Xmx256m" \
-v /home/DataBrainProject/Elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
-v /home/DataBrainProject/Elasticsearch/data:/usr/share/elasticsearch/data \
-v /home/DataBrainProject/Elasticsearch/plugins:/usr/share/elasticsearch/plugins \
-d elasticsearch:7.6.2

 处理这个问题浪费我2个小时的时间~结果原因就是那么的简单。

解决方法:

chmod 777 /home/DataBrainProject/Elasticsearch/config/
chmod 777 /home/DataBrainProject/Elasticsearch/data
chmod 777 /home/DataBrainProject/Elasticsearch/plugins

原因就是因为没有权限挂载~

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐