Hi Everybody,
I am wondering if you can help me with the following problem:
I am invoking the constructor of ElasticStore class in subclass of ServletContextListener under Tomcat: like this:
ElasticStore es = new ElasticStore(globalIndexName, /* forceIndexReinit, */indexedClasses);
and it throws me an exception:
SEVERE: Exception sending context initialized event to listener instance of class com.tycoint.eams.servlet.InitContextListener
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(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662
What am I doing wrong?
Regards,
Janusz