Hi,

I'm using the below code for indexing data from cloud. But getting the 
below exception while calling prepareIndex . Please let me know why the 
exception is coming.

  public static IndexResponse insertESDocument(String nodeName, String json)
  {  
  Node node = 
nodeBuilder().clusterName("elasticsearch").client(true).data(false).node(); 
 
  Client client = node.client();
  logger.debug("the node has been created with == " 
+node.settings().getAsMap());
  logger.debug("the json received as == "+json);
  
  IndexResponse response = 
client.prepareIndex("aricloud-nodes","node-entry",nodeName )
             .setSource(json)
             .execute()
             .actionGet();
  client.close();
  node.close();
  return response; 
  }

--- Exception
07-04-2014 17:45:48,073  WARN [http-apr-8080-exec-4] xxxxxxxxxxxxxxx 1588 - 
RunNodesException
org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [1m]
at 
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:180)
at 
org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:491)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Thanks,
Subhadip

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/34e8098a-5a0c-40dd-a5a0-7ee2d22fce4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to