zoukankan      html  css  js  c++  java
  • ElasticSearch 报错 failed to obtain node locks

    failed to obtain node locks, tried [[/var/lib/elasticsearch]] with lock id [0];

    错误信息:

    failed to obtain node locks, tried [[/var/lib/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes]

    Elasticsearch version 6.8.2

    解决方法一:

    查找ES进程号,杀掉进程然后重启。

    ps -ef | grep elastic
    
    kill -9 进程号

    解决方法二:

    给予操作ES的管理员权限,chown -R 用户名:组名 文件目录 

    chown -R elastic /var/lib/elasticsearch/

    解决方法三:

    可能是因为安装了ES的插件,修改了配置文件 elasticsearch.yml

    将这些注释或删除掉后重启

    http.cors.allow-origin: 'http://localhost:1358'
    http.cors.enabled: true
    http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
    http.cors.allow-credentials: true
  • 相关阅读:
    程序从命令行接收多个数字,求和之后输出结果。
    动态规划(1)
    软件工程个人作业(4)
    冲刺2 01
    构建之法
    水王
    大道至简第七章读后感
    构建之法03
    团队冲刺第四天
    团队冲刺第三天
  • 原文地址:https://www.cnblogs.com/sirdong/p/12095097.html
Copyright © 2011-2022 走看看