我正在使用linux mint 17.2 64bit rafaela肉桂版。我成功配置了hadoop 2.7.1,但系统重启后显示错误。 我已经安装了oracle jdk1.8。这些是我的hadoop的hduser .bashrc文件值。
# Set JAVA_HOME (we will also configure JAVA_HOME directly for Hadoop later on)
# Add Hadoop bin/ directory to PATH
# --hadoop enviroment variable starts --#
export HADOOP_HOME=/usr/local/hadoop
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$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 HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
export PATH=$PATH:/usr/local/hadoop/bin/
# --hadoop enviroment variable end --#
版本是
Hadoop 2.7.1
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r
15ecc87ccf4a0228f35af08fc56de536e6ce657a
Compiled by jenkins on 2015-06-29T06:04Z
Compiled with protoc 2.5.0
From source with checksum fc0a1a23fc1868e4d5ee7fa2b28a58a
This command was run using /usr/local/hadoop/share/hadoop/common
/hadoop- common-2.7.1.jar
登录hduser时终端显示错误,如下所示
Password:
bash: export: `=': not a valid identifier
bash: export: `/usr/local/hadoop': not a valid identifier
我在第一次使用jps'命令,但在操作系统重新启动后,jps'命令仅返回以下值
hduser@vishnu-300E5E-300E4E-300E5V-300E4V ~ $jps
3727 Jps
hduser@vishnu-300E5E-300E4E-300E5V-300E4V ~ $
让我知道我是linux新手的配置问题