Member since
02-14-2017
11
Posts
5
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
6635 | 02-14-2017 02:36 PM |
02-14-2017
02:36 PM
4 Kudos
I found the source of the problem and i solved it! i was using public ip in my hosts file. as Azure doesn't allow binding on public ip so it was impossible to start services. i changed all to private IP and the issue is solved. thanks for your help
... View more
02-14-2017
01:19 PM
@Sagar Shimpi Hello, - that bug was solved in the version i am using (2.2.2) - iptables are disabled and so selinux - hostname and hostname -f have the same output "namenode". - i restarted the machine but the issue is the same.
... View more
02-14-2017
11:22 AM
1 Kudo
Hello, i have installed ambari 2.2.2 on Centos 6.8 Azure platform. i ve installed services i need successfully, but when i want to start them, zookeeper starts fine, but HDFS does not! here is the log of /var/log/hadoop/hdfs/hadoop-hdfs-namenode-namenode.log: 2017-02-14 11:00:21,714 ERROR namenode.NameNode (NameNode.java:main(1714)) - Failed to start namenode.
java.net.BindException: Port in use: namenode:50070
at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:919)
at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:856)
at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:156)
at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:892)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:720)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:951)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:935)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1641)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1709)
Caused by: 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.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:914)
... 8 more
2017-02-14 11:00:21,715 INFO util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status 1
2017-02-14 11:00:21,718 INFO namenode.NameNode (LogAdapter.java:info(47)) - SHUTDOWN_MSG: i want to mention that the port 50070 is not in use, cause the following command does not return any line. netstat -tulpn | grep :50070 Also, i have changed the port number to 50071, restarted everything, but the issue was not solved. Any help will be appreciated thank you
... View more
Labels:
- Labels:
-
Apache Hadoop