Support Questions
Find answers, ask questions, and share your expertise

HDP 3 unable to start namenode

Highlighted

HDP 3 unable to start namenode

Contributor

I am not able to start namenode due to following error:

ambari is executing following command while error appears:

I can see ranger-hdfs-plugin-shim-1.1.0.3.0.0.0-1634.jar

hdfs --config /usr/hdp/3.0.0.0-1634/hadoop/conf namenode -format -nonInteractive
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.ranger.authorization.hadoop.RangerHdfsAuthorizer not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2624)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:891)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:731)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1168)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1631)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1741)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.ranger.authorization.hadoop.RangerHdfsAuthorizer not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2592)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2616)
	... 5 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.ranger.authorization.hadoop.RangerHdfsAuthorizer not found
	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2496)
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2590)
2 REPLIES 2

Re: HDP 3 unable to start namenode

Rising Star

ranger plugin jar seems to be missing from the server you can copy that and then start the namenode

Highlighted

Re: HDP 3 unable to start namenode

Hi @Eon kitex ,

ClassNotFoundException seems to be missing jar from your lib folder.

can you list

 /usr/hdp/3.0.0.0-1634/hadoop/lib

From the code it looks like Ranger-HDFS jars might be missing.

This is output from my cluster

[root@anaikhdp1 ~]# ls -l /usr/hdp/3.0.0.0-1634/hadoop/lib |grep -i hdfs*
drwxr-xr-x. 2 root root    4096 Aug 24 10:24 ranger-hdfs-plugin-impl
-rw-r--r--. 1 root root   13993 Jul 12 20:55 ranger-hdfs-plugin-shim-1.1.0.3.0.0.0-1634.jar

Hope this helps you

Don't have an account?