Posts: 44
Registered: ‎07-28-2016
Accepted Solution

Namenode backup help

Hello -


I am trying to run the hdfs dfsadmin -fetchImage command to get a back up of our Namenode.


It is failing similar to this thread ->


In that post, there is the suggestion below...about adding users to the dfs.cluster.adminstrators property (see snippet below). 

We are on CM 5.11 and I am not finding this property.  Does anyone know how to set it?  Or, do i have to just update some config ini/xml file?



=== from link ===

In clusters managed by Cloudera Manager 5.x, the property is set to "hdfs" by default. So if this command is run as the hdfs user on any node on the cluster, the command will succeed.

You can try setting dfs.cluster.administrators to the list of users and groups who are allowed to perform this operation and then try again. It will require a restart of the Namenode(s) to take effect.

<value>user1,user2,user3 group1,group2,group3</value>



Posts: 1,903
Kudos: 435
Solutions: 307
Registered: ‎07-31-2013

Re: Namenode backup help

You should place that config XML snippet under HDFS - Configuration -
'NameNode Advanced Configuration Snippet (Safety Valve) for hdfs-site.xml'

For more on what the 'Advanced Configuration Snippet' / 'Safety Valve'
fields are:
Posts: 44
Registered: ‎07-28-2016

Re: Namenode backup help

Thanks so much for the help.


That worked.  I was able to get the backup of the fsimage.