Just a guess, but perhaps creating a local node client does not instantiate
the internal Jetty server.

-- 
Ivan


On Tue, Mar 18, 2014 at 2:55 PM, Mohit Anchlia <[email protected]>wrote:

> I am trying to form a cluster between my test elasticsearch that runs in
> jvm with my main code that connects using transportclient but it doesn't
> seem to work:
>
> My test class code:
>
>
>    node = nodeBuilder().local(true).node();
>    client = node.client();
>
> // This connects fine
> INFO  org.elasticsearch.http [Thread-0]: [Midgard Serpent] bound_address
> {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/172.28.172.154:9200
> ]}
>
> // Now the transport client code
>   client = new TransportClient()
>         .addTransportAddress(new InetSocketTransportAddress(host, port));
>
>
> // This fails to connect to the one I started in local(true) mode:
> INFO  org.elasticsearch.client.transport [main]: [Oracle] failed to get
> node info for [#transport#-1][SDGL0][inet[/172.28.172.154:9200]],
> disconnecting...
> org.elasticsearch.transport.ReceiveTimeoutTransportException:
> [][inet[/172.28.172.154:9200]][cluster/nodes/info] request_id [0] timed
> out after [5002ms]
>  at
> org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:356)
>  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>  at java.lang.Thread.run(Unknown Source)
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoht0_gzj-GRkAO2xcvAqDfZ%3Djz-xCUPWvozLnKbfKbtQ%40mail.gmail.com<https://groups.google.com/d/msgid/elasticsearch/CAOT3TWoht0_gzj-GRkAO2xcvAqDfZ%3Djz-xCUPWvozLnKbfKbtQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBfGFKJ5tQfwO%2Br2%2B58kKea-LDLvtoRN6Uts9Auh4SeQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to