deepak@deepak-Linux:~$ pig -version
/usr/local/hadoop/bin/hadoop: line 166: /usr//bin/java: No such file or directory
deepak@deepak-Linux:~$ echo $JAVA_HOME
/usr/java/jdk-9.0.1
deepak@deepak-Linux:~$ echo #HADOOP_HOME
HADOOP_HOME
是空的,但我已在中设置了路径~/.bashrc
。
我的~/.bashrc
:
export HADOOP_HOME=/usr/local/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
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
export HADOOP_INSTALL=$HADOOP_HOME
export PIG_HOME=/home/deepak/pig
export PATH=$PATH:/home/deepak/pig/bin
export PIG_CLASSPATH=$HADOOP_HOME
export JAVA_HOME=/usr/java/jdk-9.0.1
export PATH=$PATH:$JAVA_HOME/bin
如何修复此错误..提前感谢您的解决方案。