# hadoop namenode -format
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
/usr/hadoop/bin/hdfs: line 304: /root/usr/java/jdk1.8.0_65/bin/java: No such file or directory
/usr/hadoop/bin/hdfs: line 304: exec: /root/usr/java/jdk1.8.0_65/bin/java: cannot execute: No such file or directory