Setting unicast mode in embedded node?

I am created an embedded node with no data and with unicast. Is this
correct way to do it?

    NodeBuilder nb = new NodeBuilder().clusterName("log-store");
    nb.settings().put("node.data", false).
    put("discovery.zen.ping.unicast.hosts", "data-host1")
    .put("discovery.zen.ping.multicast.enabled", false);

Node node = nb.client(true).node();

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

iirc no need to set node.data, if called with client(true) afterwards...
Also you should start() the node, but I guess you just left it out here.

--Alex

On Tue, Aug 13, 2013 at 8:03 PM, vinod eligeti veligeti999@gmail.comwrote:

I am created an embedded node with no data and with unicast. Is this
correct way to do it?

    NodeBuilder nb = new NodeBuilder().clusterName("log-store");
    nb.settings().put("node.data", false).
    put("discovery.zen.ping.unicast.hosts", "data-host1")
    .put("discovery.zen.ping.multicast.enabled", false);

Node node = nb.client(true).node();

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yes however, can you comment on whether the way i am setting the unicast
properties are correct or not?

On Thu, Aug 15, 2013 at 5:17 AM, Alexander Reelsen alr@spinscale.de wrote:

Hey,

iirc no need to set node.data, if called with client(true) afterwards...
Also you should start() the node, but I guess you just left it out here.

--Alex

On Tue, Aug 13, 2013 at 8:03 PM, vinod eligeti veligeti999@gmail.comwrote:

I am created an embedded node with no data and with unicast. Is this
correct way to do it?

    NodeBuilder nb = new NodeBuilder().clusterName("log-store");
    nb.settings().put("node.data", false).
    put("discovery.zen.ping.unicast.hosts", "data-host1")
    .put("discovery.zen.ping.multicast.enabled", false);

Node node = nb.client(true).node();

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ySECZ7wRakw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

they are the same as they would be in your elasticsearch.yml.. if they are
correct there, the settings are correct here as well, so I guess the answer
is: yes.
You might want to use settings.putArray() though, in case you add several
hosts.

--Alex

On Thu, Aug 15, 2013 at 6:43 PM, vinod eligeti veligeti999@gmail.comwrote:

Yes however, can you comment on whether the way i am setting the unicast
properties are correct or not?

On Thu, Aug 15, 2013 at 5:17 AM, Alexander Reelsen alr@spinscale.dewrote:

Hey,

iirc no need to set node.data, if called with client(true) afterwards...
Also you should start() the node, but I guess you just left it out here.

--Alex

On Tue, Aug 13, 2013 at 8:03 PM, vinod eligeti veligeti999@gmail.comwrote:

I am created an embedded node with no data and with unicast. Is this
correct way to do it?

    NodeBuilder nb = new NodeBuilder().clusterName("log-store");
    nb.settings().put("node.data", false).
    put("discovery.zen.ping.unicast.hosts", "data-host1")
    .put("discovery.zen.ping.multicast.enabled", false);

Node node = nb.client(true).node();

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ySECZ7wRakw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.