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/2.5.0.55-1/0/xasecure-audit.xml
java.io.FileNotFoundException: /etc/hadoop/2.5.0.55-1/0/xasecure-audit.xml (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.

2 comments:

  1. Thank you so much for this nice information. Hope so many people will get aware of this and useful as well. And please keep update like this.

    Big Data Services

    Data Lake Services

    Advanced Analytics Services

    Full Stack Development Services

    ReplyDelete
  2. We all know that data warehousing as a service is a kind of outsourcing model in which the service provider manages the software as well as hardware resources.

    ReplyDelete

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...