I am trying to connect remotely to elastic search cluster having 2 nodes
My question is I am able to query successfully only when we configure both
the cluster name and host name of the individual nodes? Why it doesn't work
if I only configure the cluster name in my client code
If you don’t want to define transport addresses, you’d better use a NodeClient.
A NodeClient is actually a node running inside the cluster (with auto discovery…) but without any data.
I am trying to connect remotely to Elasticsearch cluster having 2 nodes
My question is I am able to query successfully only when we configure both the cluster name and host name of the individual nodes? Why it doesn't work if I only configure the cluster name in my client code
Thanks David once again. Can you please help in deciding which one should I
go for NodeClient or TransportClient for production deployments.
From the Elasticsearch documentation what I understand is that Node client
eliminates the double hop that is present in Transport Client. Shall I opt
for Node client then? Please suggest.
On Monday, January 5, 2015 8:17:40 PM UTC+5:30, David Pilato wrote:
If you don’t want to define transport addresses, you’d better use a
NodeClient.
A NodeClient is actually a node running inside the cluster (with auto
discovery…) but without any data.
Le 5 janv. 2015 à 13:46, Vijay Tiwary <vijaykr...@gmail.com <javascript:>>
a écrit :
I am trying to connect remotely to Elasticsearch cluster having 2 nodes
My question is I am able to query successfully only when we configure both
the cluster name and host name of the individual nodes? Why it doesn't work
if I only configure the cluster name in my client code
I myself prefer TransportClient as it has absolutely no impact on the cluster state.
A new node joining the cluster generates a cluster state update which is propagated to all nodes.
I prefer having a very stable cluster state than continuous updates. Think about a Java batch which starts every minute and connect to the cluster to perform whatever action.
That would be a lot of events per day.
Thanks David once again. Can you please help in deciding which one should I go for NodeClient or TransportClient for production deployments.
From the Elasticsearch documentation what I understand is that Node client eliminates the double hop that is present in Transport Client. Shall I opt for Node client then? Please suggest.
On Monday, January 5, 2015 8:17:40 PM UTC+5:30, David Pilato wrote:
If you don’t want to define transport addresses, you’d better use a NodeClient.
A NodeClient is actually a node running inside the cluster (with auto discovery…) but without any data.
Le 5 janv. 2015 à 13:46, Vijay Tiwary <vijaykr...@gmail.com <javascript:>> a écrit :
I am trying to connect remotely to Elasticsearch cluster having 2 nodes
My question is I am able to query successfully only when we configure both the cluster name and host name of the individual nodes? Why it doesn't work if I only configure the cluster name in my client code
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.