org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/...../test. Name node is in safe mode.
In order to forcefully let the namenode leave safemode, following command should be executed:
$ bin/hadoop dfsadmin -safemode leave
-safemode isn’t a sub-command for hadoop fs, but it is of hadoop dfsadmin.
Run following command so that any inconsistencies in the hdfs might be sorted out.
$ hadoop fsck