Just getting started with ES. I tried to start a client and I am getting
the below exception
Nov 03, 2012 12:54:48 AM org.elasticsearch.plugins
INFO: [Boomslang] loaded [], sites []
Nov 03, 2012 12:54:54 AM org.elasticsearch.client.transport
INFO: [Boomslang] failed to get local cluster state for [#transport#-1][inet[/127.0.0.1:9300]],
disconnecting...
org.elasticsearch.transport.ReceiveTimeoutTransportException:
[][inet[/127.0.0.1:9300]][cluster/state] request_id [0] timed out after
[5001ms]
at
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
My Java code
public static Client newClient()
{
final Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "elasticsearch")
.put("client.transport.sniff", true)
.build();
final TransportClient client = new TransportClient(settings);
client.addTransportAddress(new
InetSocketTransportAddress("127.0.0.1", 9300));
return client;
}
Just getting started with ES. I tried to start a client and I am getting
the below exception
Nov 03, 2012 12:54:48 AM org.elasticsearch.plugins
INFO: [Boomslang] loaded , sites
Nov 03, 2012 12:54:54 AM org.elasticsearch.client.transport
INFO: [Boomslang] failed to get local cluster state for [ #transport#-1][inet[/127.0.0.1:9300]], disconnecting...
org.elasticsearch.transport.ReceiveTimeoutTransportException:
[inet[/127.0.0.1:9300]][cluster/state] request_id [0] timed out after
[5001ms]
at
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
My Java code
public static Client newClient()
{
final Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "elasticsearch")
.put("client.transport.sniff", true)
.build();
final TransportClient client = new TransportClient(settings);
client.addTransportAddress(new
InetSocketTransportAddress("127.0.0.1", 9300));
return client;
}
I got it to work by disconnecting internet connection on my localhost. I
reconnected and tried my the code and it still worked (strange). Thanks for
trying to help.
On Saturday, 3 November 2012 00:59:47 UTC+1, Kennedy Idialu wrote:
Just getting started with ES. I tried to start a client and I am getting
the below exception
Nov 03, 2012 12:54:48 AM org.elasticsearch.plugins
INFO: [Boomslang] loaded , sites
Nov 03, 2012 12:54:54 AM org.elasticsearch.client.transport
INFO: [Boomslang] failed to get local cluster state for [#transport#-1][inet[/127.0.0.1:9300]],
disconnecting...
org.elasticsearch.transport.ReceiveTimeoutTransportException:
[inet[/127.0.0.1:9300]][cluster/state] request_id [0] timed out after
[5001ms]
at
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
My Java code
public static Client newClient()
{
final Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "elasticsearch")
.put("client.transport.sniff", true)
.build();
final TransportClient client = new TransportClient(settings);
client.addTransportAddress(new
InetSocketTransportAddress("127.0.0.1", 9300));
return client;
}
I got it to work by disconnecting internet connection on my localhost. I
reconnected and tried my the code and it still worked (strange). Thanks for
trying to help.
On Saturday, 3 November 2012 01:10:21 UTC+1, Ivan Brusic wrote:
Are you trying to connect to an external (outside of the JVM) ES instance
or an embedded one?
If the former, then add ("node.client", true) to your settings. For the
latter, you can create a client from the node you create.
Cheers,
Ivan
On Fri, Nov 2, 2012 at 4:59 PM, Kennedy Idialu <kenned...@gmail.com<javascript:>
wrote:
Just getting started with ES. I tried to start a client and I am getting
the below exception
Nov 03, 2012 12:54:48 AM org.elasticsearch.plugins
INFO: [Boomslang] loaded , sites
Nov 03, 2012 12:54:54 AM org.elasticsearch.client.transport
INFO: [Boomslang] failed to get local cluster state for [#transport#-1][inet[/127.0.0.1:9300]],
disconnecting...
org.elasticsearch.transport.ReceiveTimeoutTransportException:
[inet[/127.0.0.1:9300]][cluster/state] request_id [0] timed out after
[5001ms]
at
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
My Java code
public static Client newClient()
{
final Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "elasticsearch")
.put("client.transport.sniff", true)
.build();
final TransportClient client = new TransportClient(settings);
client.addTransportAddress(new
InetSocketTransportAddress("127.0.0.1", 9300));
return client;
}
I got it to work by disconnecting internet connection on my localhost. I
reconnected and tried my the code and it still worked (strange). Thanks for
trying to help.
On Saturday, 3 November 2012 01:10:21 UTC+1, Ivan Brusic wrote:
Are you trying to connect to an external (outside of the JVM) ES instance
or an embedded one?
If the former, then add ("node.client", true) to your settings. For the
latter, you can create a client from the node you create.
Cheers,
Ivan
On Fri, Nov 2, 2012 at 4:59 PM, Kennedy Idialu <kenned...@gmail.com<javascript:>
wrote:
Just getting started with ES. I tried to start a client and I am getting
the below exception
Nov 03, 2012 12:54:48 AM org.elasticsearch.plugins
INFO: [Boomslang] loaded , sites
Nov 03, 2012 12:54:54 AM org.elasticsearch.client.transport
INFO: [Boomslang] failed to get local cluster state for [#transport#-1][inet[/127.0.0.1:9300]],
disconnecting...
org.elasticsearch.transport.ReceiveTimeoutTransportException:
[inet[/127.0.0.1:9300]][cluster/state] request_id [0] timed out after
[5001ms]
at
org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
My Java code
public static Client newClient()
{
final Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "elasticsearch")
.put("client.transport.sniff", true)
.build();
final TransportClient client = new TransportClient(settings);
client.addTransportAddress(new
InetSocketTransportAddress("127.0.0.1", 9300));
return client;
}
I got it to work by disconnecting internet connection on my localhost. I
reconnected and tried my the code and it still worked (strange). Thanks for
trying to help.
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.