Fedora 24上的hadoop安装问题

时间:2016-11-09 12:32:40

标签: hadoop

我一直在关注本教程http://www.tecmint.com/install-configure-apache-hadoop-centos-7/在虚拟机上设置hadoop。但是,当我尝试启动hadoop时,我收到了以下错误:

start-dfs.sh 

Java HotSpot(TM) Client VM warning: You have loaded library /opt/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 16/11/09 08:20:06 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [master.hadoop.lan]

我的Java JDK目录是JAVA_HOME = / usr / local / jdk1.8.0_111

下面是.bash_profile文件中的配置信息:

## JAVA env variables
export JAVA_HOME=/usr/local/jdk1.8.0_111
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
## HADOOP env variables
export HADOOP_HOME=/opt/hadoop
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin

我在hadoop-env.sh文件中的java主路径是:

export JAVA_HOME=/usr/local/jdk1.8.0_111

我错过了配置步骤吗?

1 个答案:

答案 0 :(得分:0)

它只是一个警告。

键入<label><input type="radio" name="All" id="all" onclick="change(this)" value="all" />All</label> <div class="prs" >hello</div> <div class="prs">hello</div> <div class="prs">hello</div>并检查namenode和datanode是否正在运行。

如果您想消除警告, 替换jps

export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"

并执行bash