I'm learning Hadoop and I've installed singe node Hadoop cluster (version: 2.7.3) properly on my Mac. I already uploaded few text files in my HDFS and today when I'm trying to create a new directory in HDFS, it's showing
mkdir: Cannot create directory /horton. Name node is in safe mode.
Then I searched "What is safe mode in Hadoop?". I came to know that Namenode enters into safemode when there is shortage of memory. As a result the HDFS becomes readable only. That means one can not create any additional directory or file in the HDFS. To come out of the safemode, the following command is used:
hadoop dfsadmin -safemode leave
I've almost 150 GB free disk space and in my HDFS I've created 5 folders with some text files uploaded with it. So, I want to know how my HDFS storage gets full in just few folders and text files and if there are some other reasons for going NameNode in safe mode, please let me know the reasons.
Thank you!