hadoop1@kdblue:~$ hdfs namenode -format
它给出了这个错误!
/ home / hadoop1 / hadoop / bin / hdfs:第304行:/opt/jdk1.7.0_95//bin/java:没有这样的文件或目录
这是我的路径变量
export HADOOP_HOME=/home/hadoop/hadoop
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin