我从群集中的3个节点中的2个获得响应。
Using a groovy script *file* in an elasticsearch query - groovy script file location
在第3个节点上找不到该文件,但它在所有具有相同名称和权限的节点上都有!
节点名为demo01 - 03。
这里有一些日志输出:
demo03:
[2015-06-18 05:52:21,739][INFO ][script ] [demo03] removing script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:40:16,764][INFO ][script ] [demo03] compiling script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:40:41,771][INFO ][script ] [demo03] compiling script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:41:06,779][INFO ][script ] [demo03] compiling script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:44:26,788][INFO ][script ] [demo03] removing script file [/etc/elasticsearch/scripts/source_types.groovy~]
[2015-06-18 06:47:21,789][INFO ][script ] [demo03] compiling script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:47:21,798][WARN ][script ] [demo03] no script engine found for [groovy~]
[2015-06-18 06:49:51,799][INFO ][script ] [demo03] removing script file [/etc/elasticsearch/scripts/source_types.groovy~]
demo02:
[2015-06-18 05:52:18,078][INFO ][script ] [demo02] removing script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:41:03,098][INFO ][script ] [demo02] compiling script file [/etc/elasticsearch/scripts/source_types.groovy]
[2015-06-18 06:46:28,109][INFO ][script ] [demo02] compiling script file [/etc/elasticsearch/scripts/source_types.groovy]
答案 0 :(得分:0)
我删除了该文件并重新创建了该文件,现在搜索工作正常。我不知道根本原因。