ES各种错误解决
Posted 小鱼#
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ES各种错误解决相关的知识,希望对你有一定的参考价值。
_update API 执行报错
错误信息:
{ "error": { "root_cause": [ { "type": "remote_transport_exception", "reason": "[node-84-106][200.200.84.106:9300][indices:data/write/update[s]]" } ], "type": "illegal_argument_exception", "reason": "failed to execute script", "caused_by": { "type": "script_exception", "reason": "scripts of type [inline], operation [update] and lang [groovy] are disabled" } }, "status": 400 }
解决方法:
//sudo vim /etc/elasticsearch/elasticsearch.yml //添加: script.groovy.sandbox.enabled: true //务必注意配置不要顶格写,要空一格,否则 ES 无法启动 script.inline: on //务必注意配置不要顶格写,要空一格,否则 ES 无法启动 script.indexed: on //务必注意配置不要顶格写,要空一格,否则 ES 无法启动 script.engine.groovy.inline.update: on //务必注意配置不要顶格写,要空一格,否则 ES 无法启动
以上是关于ES各种错误解决的主要内容,如果未能解决你的问题,请参考以下文章