After all these setting when I start my elasicsearch service on my client instance I am facing the following exception.
Exception in thread "main" BindTransportException[Failed to bind to [9300-9400]]; nested: ChannelException[Failed to bind to: /1.2.3.4:9400]; nested: BindException[Cannot assign requested address];
Likely root cause: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Refer to the log for complete error details.
The above error I am getting on each of my instance when I start elasticsearch service.
I am not understanding the root cause and reason for this error and what is the solution to overcome this problem.
I hope I am clear with my question and other details.
Sir please look at the point 6 in each of the configuration which I listed above.
I have configured network.host to the elastic ip of each of my instance respectively.
I hope I am doing nothing wrong by setting network.host to the elastic-ip of the instance.
And I also I have changed node.name to DataNode_1
Thank you
cloud: aws: access_key: xx secret_key: xx region: us-east-1 discovery: type: ec2
The same settings I have made on my Data Node instances and have changed only the following parameter: node.name: DataNode_1 node.master: false node.data: true
My each service is running perfectly, but when I look at my cluster using ElasticHQ , which I have installed on my Master node , I am able to see mymaster node but I am not able to see my data node.
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.