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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.