Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Failed to format NameNode. Program: hdfs/hdfs.sh

avatar
Frequent Visitor

Hi ,

 

I am new to cloudera community.

 

on : Ubuntu : 12.04

 

got multiple file permission errors  when i tried to enable HDFS service  from the clouder manager. I believe it would be same for other services.

 

+ exec /opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hadoop-hdfs/bin/hdfs --config /run/cloudera-scm-agent/process/21-hdfs-NAMENODE-format namenode -format -clusterId cluster4 -nonInteractive
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/hadoop-hdfs/hdfs-audit.log (No such file or directory)

full log : https://drive.google.com/file/d/0B9WOaTjiz-szMkhFLWhGamlZdmc/view?usp=sharing

 

using single user mode : cloudera-scm

 

Is there something which I missed to configure. Please suggest.

 

Thanks

 

 

1 ACCEPTED SOLUTION

avatar
Cloudera Employee

Single user mode requires that you change the default configuration for all log and data directories to ones that are writable by the cloudera-scm user. The root cause for the failure you're seeing is that /dfs/nn cannot be created by the cloudera-scm user.

 

Please refer to the single user documentation for all the necessary steps to configure your cluster: http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/install_singleuser_reqt...

View solution in original post

1 REPLY 1

avatar
Cloudera Employee

Single user mode requires that you change the default configuration for all log and data directories to ones that are writable by the cloudera-scm user. The root cause for the failure you're seeing is that /dfs/nn cannot be created by the cloudera-scm user.

 

Please refer to the single user documentation for all the necessary steps to configure your cluster: http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/install_singleuser_reqt...