I'm using NodeBuilder to create a Local node to be used for functional
tests. I'm using the default configuration, but setting "node.local" to
true and reducing the number of shards and replicas.
If ES is already running in my localhost when I launch the new node, it
will use a different port, the first one available. How can I determine,
given a Node instance, in which port it's actually listening for REST
requests?
Watch out for the 'http_address' field in the response.
If your node is not a cluster member, and if you know the cluster name, you
should first join the cluster.
If your node is not a cluster member, and you do not know the cluster name,
you can't find out the 'http_address' (you can only guess it's on the
default range 9200-9299 but this may be false)
Jörg
On Friday, December 28, 2012 11:44:35 PM UTC+1, Sebastián Galkin wrote:
I'm using NodeBuilder to create a Local node to be used for functional
tests. I'm using the default configuration, but setting "node.local" to
true and reducing the number of shards and replicas.
If ES is already running in my localhost when I launch the new node, it
will use a different port, the first one available. How can I determine,
given a Node instance, in which port it's actually listening for REST
requests?
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.