[2018-03-12T20:04:04,848][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/home/sunny/soft/elasticsearch-6.2.2/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
在安装ik中文分词的时候报错
解决方法:
删除elasticsearch/data/nodes/0下的文件即可
sudo rm node.lock