Also, you should see something along the lines of
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
192.168.52.162:9300]}
Note the 9300
On Tue, Mar 18, 2014 at 3:44 PM, Ivan Brusic <[email protected]> wrote:
> It appears that everything is running, but you simply might be using the
> wrong ports.
>
> In your code:
> client = new TransportClient()
> .addTransportAddress(new InetSocketTransportAddress(host, port));
>
> What value are you using for the port? 9200 or 9300? Make sure it is 9300.
>
>
>
> On Tue, Mar 18, 2014 at 3:37 PM, Mohit Anchlia <[email protected]>wrote:
>
>> I see, is there a way to run embedded ES that allows me to connect using
>> TransportClient?
>>
>> On Tue, Mar 18, 2014 at 3:32 PM, Ivan Brusic <[email protected]> wrote:
>>
>>> TransportClient uses port 9300 by default. Port 9200 is for HTTP/REST
>>> traffic.
>>>
>>> --
>>> Ivan
>>>
>>>
>>> On Tue, Mar 18, 2014 at 3:30 PM, Mohit Anchlia
>>> <[email protected]>wrote:
>>>
>>>> I do see process listening on port 9200 and also the logs seems to
>>>> indicate that it's connected on that port
>>>>
>>>> On Tue, Mar 18, 2014 at 3:21 PM, Ivan Brusic <[email protected]> wrote:
>>>>
>>>>> 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<https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBfGFKJ5tQfwO%2Br2%2B58kKea-LDLvtoRN6Uts9Auh4SeQg%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/CAOT3TWpGfA5JLYghAjOhWPOLdZDeM59x5WW2wS6YKCvDUYwScg%40mail.gmail.com<https://groups.google.com/d/msgid/elasticsearch/CAOT3TWpGfA5JLYghAjOhWPOLdZDeM59x5WW2wS6YKCvDUYwScg%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%3DcQCJx2_mVh2fch6jAgGKb%3DrORiamfbHTtNUuAGzi2qZh8w%40mail.gmail.com<https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCJx2_mVh2fch6jAgGKb%3DrORiamfbHTtNUuAGzi2qZh8w%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/CAOT3TWpHzQxzD16XtoiDibBQ%2B%3DpvbyZZ7g4CiLCSaa_iKLtU%3DA%40mail.gmail.com<https://groups.google.com/d/msgid/elasticsearch/CAOT3TWpHzQxzD16XtoiDibBQ%2B%3DpvbyZZ7g4CiLCSaa_iKLtU%3DA%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%3DcQDgnMfkW%2B3-PscYM0pT3dq8rmgNTFzC5k6E6K460BGkWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.