By looking at this error it seems that port 50070<http://0.0.0.0:50070> is in use. Check that namenode is already running. If so stop and start.
Regards, Ramesh From: Aneela Saleem <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Tuesday, July 28, 2015 at 4:37 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: Error Setting up Ranger-Admin I'm continuously stuck at this point Regards, Aneela Saleem On Jul 29, 2015 4:37 AM, "Aneela Saleem" <[email protected]<mailto:[email protected]>> wrote: How can we check whether the problem is in Ranger's configuration or Hadoop? Regards, Aneela Saleem On Jul 29, 2015 2:03 AM, "Aneela Saleem" <[email protected]<mailto:[email protected]>> wrote: Following are the Logs: 2015-07-29 02:01:22,126 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode. java.net.BindException: Port in use: 0.0.0.0:50070<http://0.0.0.0:50070> at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:891) at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:827) at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:142) at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:703) at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:590) at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:762) at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:746) at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1438) at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504) Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:463) at sun.nio.ch.Net.bind(Net.java:455) 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:886) ... 8 more 2015-07-29 02:01:22,128 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1 2015-07-29 02:01:22,129 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: /************************************************************ SHUTDOWN_MSG: Shutting down NameNode at aneela-Lenovo-G50-70/192.168.1.4<http://192.168.1.4> ************************************************************/ On Wed, Jul 29, 2015 at 1:53 AM, Aneela Saleem <[email protected]<mailto:[email protected]>> wrote: hduser On Wed, Jul 29, 2015 at 1:51 AM, Don Bosco Durai <[email protected]<mailto:[email protected]>> wrote: This seems to be one of the reason HDFS plugin is not enabled. As what user have you installed Hadoop? Thanks Bosco From: Aneela Saleem <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Tuesday, July 28, 2015 at 1:31 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: Error Setting up Ranger-Admin Also when i run ./enable-hdfs-plugin.sh i get the following at the end: + بدھ جولاي 29 01:28:20 PKT 2015 : Saving current JCE file: /etc/ranger/hadoopdev/cred.jceks to /etc/ranger/hadoopdev/.cred.jceks.20150729012820 ... chown: invalid user: ‘hdfs:hdfs’ Ranger Plugin for hadoop has been enabled. Please restart hadoop to ensure that changes are effective.
