I am trying to make a directory in HDFS but getting an error saying NameNode is in safe mode
hdfs# bin/hadoop fs -mkdir test
mkdir: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/root/test. Name node is in safe mode.
After some browsing I found this command to leave safe mode, but still I am getting the error.
hdfs# bin/hadoop fs -safemode leave
safemode: Unknown command
Can someone me help me out?