Unable to start namenode. Error "couldn't find resource file location"

Sometimes starting the namenode might throw below error.
ERROR config.RangerConfiguration (RangerConfiguration.java:addResourceIfReadable(110)) - addResourceIfReadable(ranger-hdfs-security.xml): couldn't find resource file location
INFO  provider.AuditProviderFactory (AuditProviderFactory.java:(77)) - AuditProviderFactory: creating..
FATAL conf.Configuration (Configuration.java:loadResource(2672)) - error parsing conf file:/etc/hadoop/
java.io.FileNotFoundException: /etc/hadoop/ (No such file or directory)

This is causing because, ranger plugin is not installed and authorization provider class is registered for ranger. Your config (hdfs-site.xml) will have below xml attribute with the value
ATTRIBUTE : dfs.namenode.inode.attributes.provider.class
VALUE: org.apache.ranger.authorization.hadoop.RangerHdfsAuthorizer

Now search for above attribute in hdfs-site.xml and remove attribute.Now you are good to start the service.


Popular posts from this blog

Error : login failed on rabbitmq web-management console

MSMQ error : "A workgroup installation computer does not support the operation."

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin