We are using using Java web application to search indices. Sometimes we are getting the following error -
2013-04-04 08:34:45,980 WARNING [org.elasticsearch.client.transport] (WorkManager(2)-5) [Death's-Head] failed to get node info for [#transport#-1][inet[/127.0.0.1:9300]]
org.elasticsearch.transport.NodeNotConnectedException: [][inet[/127.0.0.1:9300]] Node not connected
at org.elasticsearch.transport.netty.NettyTransport.nodeChannel(NettyTransport.java:636)
at org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:448)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181)
at org.elasticsearch.transport.TransportService.submitRequest(TransportService.java:162)
We are using Transport client to connect to ES server. Following is the code snippet to create transport client -
public static Client createClient(String cluster, String url, int port) {
Settings s =null;
TransportClient tmp=null;
try {
Builder b = ImmutableSettings.settingsBuilder();
b.put("cluster.name", cluster);
s = b.build();
tmp = new TransportClient(s);
tmp.addTransportAddress(new InetSocketTransportAddress(url, port));
} catch (ElasticSearchException e) {
e.printStackTrace();
}
return tmp;
}
Can anyone please guide what could be the reason for exception!
We are using using Java web application to search indices. Sometimes we are
getting the following error -
2013-04-04 08:34:45,980 WARNING [org.elasticsearch.client.transport]
(WorkManager(2)-5) [Death's-Head] failed to get node info for
[#transport#-1][inet[/127.0.0.1:9300]]
org.elasticsearch.transport.NodeNotConnectedException:
[inet[/127.0.0.1:9300]] Node not connected
at
org.elasticsearch.transport.netty.NettyTransport.nodeChannel(NettyTransport.java:636)
at
org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:448)
at
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181)
at
org.elasticsearch.transport.TransportService.submitRequest(TransportService.java:162)
We are using Transport client to connect to ES server. Following is the code
snippet to create transport client -
public static Client createClient(String cluster, String url,
int port) {
Settings s =null;
TransportClient tmp=null;
try {
Builder b = ImmutableSettings.settingsBuilder();
b.put("cluster.name", cluster);
s = b.build();
tmp = new TransportClient(s);
tmp.addTransportAddress(new InetSocketTransportAddress(url, port));
} catch (ElasticSearchException e) {
e.printStackTrace();
}
return tmp;
}
Can anyone please guide what could be the reason for exception!
It seems your server did not respond to the node info request within the
default timeout of 5 seconds. Check your server log for more info.
Jörg
Am 09.04.13 10:14, schrieb ElasticUsers:
Hi Team,
We are using using Java web application to search indices. Sometimes we are
getting the following error -
2013-04-04 08:34:45,980 WARNING [org.elasticsearch.client.transport]
(WorkManager(2)-5) [Death's-Head] failed to get node info for
[#transport#-1][inet[/127.0.0.1:9300]]
org.elasticsearch.transport.NodeNotConnectedException:
[inet[/127.0.0.1:9300]] Node not connected
at
org.elasticsearch.transport.netty.NettyTransport.nodeChannel(NettyTransport.java:636)
at
org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:448)
at
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:181)
at
org.elasticsearch.transport.TransportService.submitRequest(TransportService.java:162)
We are using Transport client to connect to ES server. Following is the code
snippet to create transport client -
public static Client createClient(String cluster, String url,
int port) {
Settings s =null;
TransportClient tmp=null;
try {
Builder b = ImmutableSettings.settingsBuilder();
b.put("cluster.name", cluster);
s = b.build();
tmp = new TransportClient(s);
tmp.addTransportAddress(new InetSocketTransportAddress(url, port));
} catch (ElasticSearchException e) {
e.printStackTrace();
}
return tmp;
}
Can anyone please guide what could be the reason for exception!
We are using the same ES version for node and web app - 0.18.7
Sometimes when we execute curl -XGET 'http://localhost:9200/_cluster/health?pretty=true', we don't get any output and it hangs. This usually happen when we search for facets. One of our requirement is to get top 100 values for a term and their occurrences (for e. g. how many times a IP 10.11.12.13 occur). For this we build a TermsFacetBuilder and set size in following way -
termsFacetBuilder.size(100);
After setting other query parameters we execute the query and get the term facets by executing -
Facets facets = response.facets();
where response is an instance of SearchResponse class.
As many as 5 such query could be fired by web app by a single user itself.
If I am correct is that facets (top 100) query slowing down the ES server since it will search in entire data set!. We have millions of records and an injector process runs in parallel which indexes live data. Memory resource available is 24g+.
I feel like you are switching from one question to another.
That said, given the numbers you wrote, I would probably bet that you have something in node logs, like memory or GC concerns…
I would try to look at routing feature and try to send to a single shard all docs you need to compute on.
For example, let's say that your users are searching for their own documents and that you have this field in a metadata field:
{
"userid":"david",
…
}
You can index that document using routing and set for this doc routing to "david".
We are using the same ES version for node and web app - 0.18.7
Sometimes when we execute curl -XGET
'http://localhost:9200/_cluster/health?pretty=true', we don't get any output
and it hangs. This usually happen when we search for facets. One of our
requirement is to get top 100 values for a term and their occurrences (for
e. g. how many times a IP 10.11.12.13 occur). For this we build a
TermsFacetBuilder and set size in following way -
termsFacetBuilder.size(100);
After setting other query parameters we execute the query and get the term
facets by executing -
Facets facets = response.facets();
where response is an instance of SearchResponse class.
As many as 5 such query could be fired by web app by a single user itself.
If I am correct is that facets (top 100) query slowing down the ES server
since it will search in entire data set!. We have millions of records and an
injector process runs in parallel which indexes live data. Memory resource
available is 24g+.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.