dfsadmin tool provide the commands to handle the safe mode.
The commands are-1. hdfs dfsadmin -safemode get
This command will show if the name node is in safe mode or not
Output will be
Safe mode is ON (if namenode is in safe mode)
Safe mode is OFF (if namenode is not in safe mode)
2 .hdfs dfsadmin -safemode enter
This command will take the namenode into the safe mode
Output will be -
Safe mode is ON
3.hdfs dfsadmin -safemode leave
This command will force the namenode to come out of safe mode. It will be better if nameode is allowed to come out of safe mode itself.
Output will be -
Safe mode is OFF
No comments:
Post a Comment
if you have any query regarding geek languages,
email on arora.ratul@gmail.com