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.
Client client = node.client();
logger.debug("the node has been created with == "
+node.settings().getAsMap());
logger.debug("the json received as == "+json);
--- 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)
Please suggest. I'm getting connection error in elasticsearch end even if
the node is running.
[2014-04-07 17:22:40,109][WARN ][transport.netty ] [node-master]
exception caught on transport layer [[id: 0xd2
f92b59, 0.0.0.0/0.0.0.0:64313]], closing connection
java.net.SocketException: Network is unreachable: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:701)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:718)
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:647)
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:615)
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)
If I restart ES the same is working. But gives me this issue if multiple
call made after some time.
My client and server are on the same system. I stopped the firewall also.
Any suggestion how to make multicast working. Can I create and close client
node for multiple times?
If I restart ES the same is working. But gives me this issue if multiple call made after some time.
My client and server are on the same system. I stopped the firewall also.
Any suggestion how to make multicast working. Can I create and close client node for multiple times?
I'm trying to store all cloud event related data like create node, delete
node etc. in ES. So whenever a new event occurs I'm creating a new node and
client, doing the indexing and then closing the node.
As you said, should I use same node created and use that in all occurence?
like using a singleton? or can I create node every time with same name and
close it after ES operation done? Pls suggest.
Le 8 avril 2014 à 10:49:59, Subhadip Bagui (i.bagui@gmail.com) a écrit:
Hi David,
I'm trying to store all cloud event related data like create node, delete node etc. in ES. So whenever a new event occurs I'm creating a new node and client, doing the indexing and then closing the node.
As you said, should I use same node created and use that in all occurence? like using a singleton? or can I create node every time with same name and close it after ES operation done? Pls suggest.
The issue is that if I leave ES inactive for some time I get java.net.SocketException:
Network is unreachable error. I have to restart ES to get it worked. May be
too many node or client is created.
So I'm trying to use the same client instance created for all ES. But the
singleton instance is not returning.
The cluster is working fine and through REST its GET I'm getting all
indexes.
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.