How does a Node find the cluster just by the cluster name?


(Albert Lim) #1

I'm using the following code to connect to my cluster

Node node = nodeBuilder().clusterName("yourclustername").node();
Client client = node.client();

How does the nodeBuilder know the IP address of my cluster, just by the
cluster name?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/931486c5-e6cb-4485-96e2-7acee388eaf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Albert Lim) #2

Actually, is this only if you actually have elasticsearch running locally?

On Saturday, August 30, 2014 12:27:33 AM UTC-7, Albert Lim wrote:

I'm using the following code to connect to my cluster

Node node = nodeBuilder().clusterName("yourclustername").node();
Client client = node.client();

How does the nodeBuilder know the IP address of my cluster, just by the
cluster name?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b6481ab-40ab-40fc-b23e-8052efb158ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #3

It uses multicast to find other nodes running on your network.

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

Le 30 août 2014 à 09:29, Albert Lim albertlim322@gmail.com a écrit :

Actually, is this only if you actually have elasticsearch running locally?

On Saturday, August 30, 2014 12:27:33 AM UTC-7, Albert Lim wrote:
I'm using the following code to connect to my cluster

Node node = nodeBuilder().clusterName("yourclustername").node();
Client client = node.client();

How does the nodeBuilder know the IP address of my cluster, just by the cluster name?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b6481ab-40ab-40fc-b23e-8052efb158ba%40googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/67C6E999-8E5A-473E-B83F-13BDE17DC3AC%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Albert Lim) #4

Thank you, so I guess if I have my cluster running on, for example, ec2, my
local web server will not be able to find the cluster through multicast.

On Saturday, August 30, 2014 12:59:21 AM UTC-7, David Pilato wrote:

It uses multicast to find other nodes running on your network.

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

Le 30 août 2014 à 09:29, Albert Lim <albert...@gmail.com <javascript:>> a
écrit :

Actually, is this only if you actually have elasticsearch running locally?

On Saturday, August 30, 2014 12:27:33 AM UTC-7, Albert Lim wrote:

I'm using the following code to connect to my cluster

Node node = nodeBuilder().clusterName("yourclustername").node();
Client client = node.client();

How does the nodeBuilder know the IP address of my cluster, just by the
cluster name?

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/1b6481ab-40ab-40fc-b23e-8052efb158ba%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/1b6481ab-40ab-40fc-b23e-8052efb158ba%40googlegroups.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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a5cc1045-fb92-4da2-8ef1-79e97affe574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #5

Yes. You need to use unicast or aws plugin.

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

Le 30 août 2014 à 12:39, Albert Lim albertlim322@gmail.com a écrit :

Thank you, so I guess if I have my cluster running on, for example, ec2, my local web server will not be able to find the cluster through multicast.

On Saturday, August 30, 2014 12:59:21 AM UTC-7, David Pilato wrote:
It uses multicast to find other nodes running on your network.

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

Le 30 août 2014 à 09:29, Albert Lim albert...@gmail.com a écrit :

Actually, is this only if you actually have elasticsearch running locally?

On Saturday, August 30, 2014 12:27:33 AM UTC-7, Albert Lim wrote:
I'm using the following code to connect to my cluster

Node node = nodeBuilder().clusterName("yourclustername").node();
Client client = node.client();

How does the nodeBuilder know the IP address of my cluster, just by the cluster name?

--
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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1b6481ab-40ab-40fc-b23e-8052efb158ba%40googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a5cc1045-fb92-4da2-8ef1-79e97affe574%40googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/016CABCD-1BF2-4D94-94BF-11D9C2198F77%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(system) #6