I disabled multicast and enabled unicast with right host and port mapping 
and that helped me to connect.

Let me know if there is any other better alternative.

Thanks,
Ashish


On Thursday, 12 June 2014 09:52:47 UTC+5:30, Ashish Raniwala wrote:

> Hi,
>
> I want to deploy ES on a server which already has another application 
> using 9300 port. When I start ES, it automatically select next free port 
> like 9302 which is expected.
>
> Problem is that I am unable to connect to ES cluster even if I specify 
> 9302 port in transport client, log shows that client is still trying to 
> connect to 9300 port.
>
> Client client = new TransportClient()
>         .addTransportAddress(new InetSocketTransportAddress("host1", 9302
> ))
>
> - [Jacob "Jake" Fury] failed to get local cluster state for 
> [#transport#-1][nds3070558][inet[10.52.192.144:9300]], disconnecting...
>
> org.elasticsearch.transport.ReceiveTimeoutTransportException: 
> [][inet[10.52.192.144:9300]][cluster/state] request_id [0] timed out after 
> [5044ms]
>
> Can someone please confirm if it is possible to run ES if 9300 port is not 
> available and if so provide me pointer on how to correctly specify port 
> when creating java client.
>
> Thanks,
> Ashish
>

-- 
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/cb5530eb-9d09-4b9a-9583-43c9ae86357c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to