Skip to main content
Tung
Silver ⭐️⭐️
July 31, 2024
Solved

Fail when add cluster

After I deleted the old cluster and then recreated a new one. I had a new error never got before at the Command Details step. I don't know exactly what is the reason, can someone help me fix this issue?

Tung_0-1722416953067.png

 

here is the Error Log of Cloudera scm server:

2024-07-31 15:56:09,184 ERROR CommandPusher-1:com.cloudera.cmf.model.DbCommand: Command 1546343795(Format) has completed. finalstate:FINISHED, success:false, msg:Failed to format NameNode.
2024-07-31 15:56:09,188 ERROR CommandPusher-1:com.cloudera.cmf.model.DbCommand: Command 1546343686(First Run) has completed. finalstate:FINISHED, success:false, msg:Completed only 3/4 steps. First failure: Command (Format (1546343795)) has failed

Thank you.

 

 
 
Rajat_710
Rajat_710Answer
Gold ⭐️⭐️
July 31, 2024

@Tung if you are configuring a new cluster then the NN data directory should be empty, otherwise, NN formatting will fail. Please check if that's the issue else please paste the full error stack

4 replies

VidyaSargur
Community Manager
Community Manager
July 31, 2024

@Tung, Welcome to our community! To help you get the best possible answer, I have tagged in our CM experts @upadhyayk04 @Rajat_710  who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
upadhyayk04
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
July 31, 2024

Hello @Tung 

Thank you for reaching out. This seems to be coming from the namenode

Please expand the task there you will be able to see more errors

FINISHED, success:false, msg:Failed to format NameNode

 

Translate
Rajat_710
Gold ⭐️⭐️
Rajat_710Answer
Gold ⭐️⭐️
July 31, 2024

@Tung if you are configuring a new cluster then the NN data directory should be empty, otherwise, NN formatting will fail. Please check if that's the issue else please paste the full error stack

Translate
Tung
TungAuthor
Silver ⭐️⭐️
August 8, 2024

Thank you, I resolved it after clear all /dfs/nn and /dfs/dn at all nodes, and recreated all databases.

Translate