{“type“: “server“, “timestamp“: “2022-05-27T07:24:11,958Z“, “level“: “ERROR“, “component“:
{"type": "server", "timestamp": "2022-05-27T07:24:11,958Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "elasticsearch", "node.name": "234e4baad6ab",
{"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
原因就是因为没有权限挂载~
更多推荐
所有评论(0)