I just contact the hadoop and Linux environment variable configuration out of the big issues checked many blogs but has not been configured
Ask teachers for advice
CodePudding user response:
Export JAVA_HOME=/usr/Java/1.7.0 _09The export PATH=$PATH: $JAVA_HOME/bin
Export HADOOP_HOME=/usr/itcast/hadoop - 2.6.1
The export PATH=$PATH: $HADOOP_HOME/bin: $HADOOP_HOME/sbin
CodePudding user response:
Itcast, dark horse, ha ha,,,CodePudding user response:
export JAVA_HOME=/home/xyz/Java/jdk1.8.0 _45
Export JRE_HOME=$JAVA_HOME/jre
Export the CLASSPATH=$JAVA_HOME/lib: $$JRE_HOME: $CLASSPATH
The export PATH=$JAVA_HOME/bin/: $JRE_HOME/bin/: $PATH
Export HADOOP_HOME=/home/xyz/hadoop/hadoop - 2.7.0
The export PATH=$HADOOP_HOME/bin/: $PATH
The export PATH=$HADOOP_HOME/sbin/: $PATH:/home/xyz/hive/apache - hive - 1.2.1 - bin/bin/
Export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native/: $LD_LIBRARY_PATH
Export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native/
Export HADOOP_PREFIX=$HADOOP_HOME
Export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
Export HADOOP_OPTS="- Djava. If the path=$HADOOP_PREFIX/lib"
Export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server/: $LD_LIBRARY_PATH
Export FINDBUGS_HOME=/home/xyz/hadoop/findbugs - 3.0.0
CodePudding user response:
Export JAVA_HOME=/usr/local/Java/jdk1.8.0 _51
Export HADOOP_HOME=/home/hadoop
The export PATH=$PATH: $HADOOP_HOME/sbin: $HADOOP_HOME/bin
The export PATH=$PATH: $JAVA_HOME/bin
CodePudding user response:
My/etc/profile file is so worthy of# set the Java environment
Export JAVA_HOME=/usr/Java/jdk1.8.0 _151
Export the CLASSPATH=. : $CLASSPATH: $JAVA_HOME/lib: $JAVA_HOME/jre/lib
The export PATH=$PATH: $JAVA_HOME/bin: $JAVA_HOME/jre/bin
CodePudding user response:
JDK version down there will be a problem, try the jdk1.8CodePudding user response:
This is a look at your hadoop Java environment configuration is wrong