I have a Java client that tries to connect to a cluster on startup. I would
like to set it up
so that if the cluster is not running, the client retries the connection
(after a suitable delay), until
the cluster is started.
If I have multicast enabled, the program works. If unicast is used,
however, the client fails to connect
even after the cluster is restarted. I get:
org.elasticsearch.cluster.block.ClusterBlockException: blocked by:
[SERVICE_UNAVAILABLE/1/state not recovered /
initialized];[SERVICE_UNAVAILABLE/2/no master]
I have to restart the cluster and the client in order for the connection to
succeed.
Is there a way to make this work without enabling multicast?
I have a Java client that tries to connect to a cluster on startup. I
would like to set it up
so that if the cluster is not running, the client retries the connection
(after a suitable delay), until
the cluster is started.
If I have multicast enabled, the program works. If unicast is used,
however, the client fails to connect
even after the cluster is restarted. I get:
org.elasticsearch.cluster.block.ClusterBlockException: blocked by:
[SERVICE_UNAVAILABLE/1/state not recovered /
initialized];[SERVICE_UNAVAILABLE/2/no master]
I have to restart the cluster and the client in order for the connection
to succeed.
Is there a way to make this work without enabling multicast?
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.