0

I've installed hadoop version 2.7.2 on 64 bit CentOS 7. I can't seem to get past this:

$ hdfs dfs -mkdir /user
mkdir: Cannot create directory /user. Name node is in safe mode.

$ hdfs dfsadmin -safemode leave

Safe mode is OFF

$ hdfs dfs -mkdir /user
mkdir: Cannot create directory /user. Name node is in safe mode.

I've looked at various posts online and nothing has hepled me so far.

What am I doing wrong? Please let me know.

Thanks in advance.

mech
  • 2,775
  • 5
  • 30
  • 38
  • I checked that post and it does not give a solution to the actual problem where the error does not clear itself. – Seshadri Raman Feb 19 '16 at 06:32
  • Is your datanodes running? – B Chawla Feb 19 '16 at 18:27
  • Pardon my lack of knowledge of Hadoop. This is the output I get:hdfs dfsadmin -report Safe mode is ON Configured Capacity: 0 (0 B) Present Capacity: 0 (0 B) DFS Remaining: 0 (0 B) DFS Used: 0 (0 B) DFS Used%: NaN% Under replicated blocks: 0 Blocks with corrupt replicas: 0 Missing blocks: 0 Missing blocks (with replication factor 1): 0 ------------------------------------------------- – Seshadri Raman Feb 21 '16 at 01:14
  • I ended up creating a new VM and things now seem to work. – Seshadri Raman Feb 21 '16 at 03:23

0 Answers0