Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Failed to format namenode error during while installing cdh 6.2

Solved Go to solution

Failed to format namenode error during while installing cdh 6.2

New Contributor

The hdfs installation fails with the following error while installing cdh 6.2.

Can't open /var/run/cloudera-scm-agent/process/63-hdfs-NAMENODE-format/supervisor_status:Permission denied

what would cause this error?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Failed to format namenode error during while installing cdh 6.2

Super Guru

@rjotwani-211490215,

 

The error message regarding the supervisor_status file can be ignored.  We will fix the code that generates that error sometime in the future.

The message that indicates the cause of the formatting failure is:

 

Running in non-interactive mode, and data appears to exist in Storage Directory /dfs/nn.
Not formatting.

It may be you have some old data in /dfs/nn.  If you are sure you do not need what is in /dfs/nn you can copy it to another location or delete it.  Just be sure you don't need/want whatever is there.

3 REPLIES 3

Re: Failed to format namenode error during while installing cdh 6.2

New Contributor
Can't open /var/run/cloudera-scm-agent/process/67-hdfs-NAMENODE-format/supervisor_status: Permission denied.
+ make_scripts_executable
+ find /var/run/cloudera-scm-agent/process/67-hdfs-NAMENODE-format -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';'
+ '[' DATANODE_MAX_LOCKED_MEMORY '!=' '' ']'
+ ulimit -l
+ export HADOOP_IDENT_STRING=hdfs
+ HADOOP_IDENT_STRING=hdfs
+ '[' -n '' ']'
+ '[' mkdir '!=' format-namenode ']'
+ acquire_kerberos_tgt hdfs.keytab
+ '[' -z hdfs.keytab ']'
+ KERBEROS_PRINCIPAL=
+ '[' '!' -z '' ']'
+ '[' -n '' ']'
+ '[' validate-writable-empty-dirs = format-namenode ']'
+ '[' file-operation = format-namenode ']'
+ '[' bootstrap = format-namenode ']'
+ '[' failover = format-namenode ']'
+ '[' transition-to-active = format-namenode ']'
+ '[' initializeSharedEdits = format-namenode ']'
+ '[' initialize-znode = format-namenode ']'
+ '[' format-namenode = format-namenode ']'
+ '[' -z /dfs/nn ']'
+ for dfsdir in '$DFS_STORAGE_DIRS'
+ '[' -e /dfs/nn ']'
+ '[' '!' -d /dfs/nn ']'
+ CLUSTER_ARGS=
+ '[' 2 -eq 2 ']'
+ CLUSTER_ARGS='-clusterId cluster19'
+ '[' 3 = 6 ']'
+ '[' -3 = 6 ']'
+ exec /opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/hadoop-hdfs/bin/hdfs --config /var/run/cloudera-scm-agent/process/67-hdfs-NAMENODE-format namenode -format -clusterId cluster19 -nonInteractive
WARNING: HADOOP_PREFIX has been replaced by HADOOP_HOME. Using value of HADOOP_PREFIX.
WARNING: HADOOP_NAMENODE_OPTS has been replaced by HDFS_NAMENODE_OPTS. Using value of HADOOP_NAMENODE_OPTS.
Running in non-interactive mode, and data appears to exist in Storage Directory /dfs/nn. Not formatting.
Highlighted

Re: Failed to format namenode error during while installing cdh 6.2

Super Guru

@rjotwani-211490215,

 

The error message regarding the supervisor_status file can be ignored.  We will fix the code that generates that error sometime in the future.

The message that indicates the cause of the formatting failure is:

 

Running in non-interactive mode, and data appears to exist in Storage Directory /dfs/nn.
Not formatting.

It may be you have some old data in /dfs/nn.  If you are sure you do not need what is in /dfs/nn you can copy it to another location or delete it.  Just be sure you don't need/want whatever is there.

Re: Failed to format namenode error during while installing cdh 6.2

New Contributor

thanks