Dear Elasticsearch User, When I am trying to run my ES Based Java program, I got following exception
org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]
at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:356)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
<b>At the same time I have started es.batch.. But I have stopped that es.batch then the program running. Please let me know what is problem..?</b>
When I am trying to run my ES Based Java program, I got following
exception *
org.elasticsearch.discovery.MasterNotDiscoveredException: waited
for [30s]
at
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:169)
at
org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:356)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
*At the same time I have started es.batch.. But I have stopped that
es.batch then the program running. Please let me know what is problem..?*
Hi Kimchy,
Thanks for your reply. Yes am starting java client with default yml settings.. Nothing I was changed there.. Always I got same exception(MasterNotDiscoveredException )
So, it means that it did not join the cluster of remote servers. Probably
multicast is not working for you. Try and configure the node client with
unicast, or use TransportClient.
Hi Kimchy,
Thanks for your reply. Yes am starting java client with
default yml settings.. Nothing I was changed there.. Always I got same
exception(MasterNotDiscoveredException )
thanks for the help Kimchy.. I am using TransportClient. Now it will work fine. I want to understand difference between the following two method of client creation..
thanks for the help Kimchy.. I am using TransportClient. Now it will work
fine. I want to understand difference between the following two method of
client creation..
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.