Elasticsearch node client

Hi,

I am trying to use BulkInsert API and building a node client. So far I have
ES running and I can telnet to port 9300 and 9200, so there is no firewall
issue, I have Transport client working, but isnt that true that each
request using Transport client is two hop process. I havent compared both
of them, but does anyone has any comparison in performance? I am trying to
avoid using Transport client and want to run this client node right on the
local machine for index. I tried everything in my power to make it work but
every effort resulted in masternot found exception.

Node node = nodeBuilder().local(true
).settings(ImmutableSettings.settingsBuilder()

                            .put("node.data",false)

                            .put("node.client",true)

                            .put("cluster.name", "elasticsearch")

                            .put("discovery.zen.ping.multicast.ttl", 4)

                            .put("discovery.zen.ping.multicast.enabled",

true)

                            .put(

"discovery.zen.ping.multicast.ping.enabled",false)

                            .put("discovery.zen.ping.unicast.hosts", "

192.168.1.68:9200")

                            .put("client.transport.sniff", true))

                            .build().start();

Client client = node.client();

Thanks very much...

Deepak

--

Use the 9300 port instead 9200.
IT should work.
.put("discovery.zen.ping.unicast.hosts", "192.168.1.68:9300")

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 déc. 2012 à 07:39, Deepak Tiwari dtiwari356@gmail.com a écrit :

Hi,

I am trying to use BulkInsert API and building a node client. So far I have ES running and I can telnet to port 9300 and 9200, so there is no firewall issue, I have Transport client working, but isnt that true that each request using Transport client is two hop process. I havent compared both of them, but does anyone has any comparison in performance? I am trying to avoid using Transport client and want to run this client node right on the local machine for index. I tried everything in my power to make it work but every effort resulted in masternot found exception.

Node node = nodeBuilder().local(true).settings(ImmutableSettings.settingsBuilder()
.put("node.data",false)
.put("node.client",true)
.put("cluster.name", "elasticsearch")
.put("discovery.zen.ping.multicast.ttl", 4)
.put("discovery.zen.ping.multicast.enabled",true)
.put("discovery.zen.ping.multicast.ping.enabled",false)
.put("discovery.zen.ping.unicast.hosts", "192.168.1.68:9200")
.put("client.transport.sniff", true))
.build().start();

Client client = node.client();

Thanks very much...

Deepak

--

--