我知道这是互联网上一个着名的问题,有很多网站显示如何解决这个问题,而且还有很多关于SO的问答。但是 NONE 他们帮了我,我现在很沮丧。所以我尽我所能,如果我忽略了什么,我感谢你的帮助。
**OS** : Ubuntu 16.04 32 bit
**Hadoop version** : Hadoop 3.0.0-alpha3
**bashrc** :
export HADOOP_HOME=/usr/local/hadoopec/hadoop
export HADOOP_CONF_DIR=/usr/local/hadoopec/hadoop/etc/hadoop
export HADOOP_MAPRED_HOME=/usr/local/hadoopec/hadoop
export HADOOP_COMMON_HOME=/usr/local/hadoopec/hadoop
export HADOOP_HDFS_HOME=/usr/local/hadoopec/hadoop
export PATH=$PATH:/usr/local/hadoopec/hadoop/bin
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386
export LD_LIBRARY_PATH=/usr/local/hadoopec/hadoop/lib/native/:$LD_LIBRARY_PATH
#export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
**core-site.xml** :
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/hadoopec/hadoop/tmp</value>
<description>Temporary Directory.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
<description>Use HDFS as file storage engine</description>
</property>
**hdfs-env.sh**
export HADOOP_OPTS="$HADOOP_OPTS -Djava.library.path=$HADOOP_HOME/lib/native"
export HADOOP_OPTS="$HADOOP_OPTS -XX:-PrintWarnings -Djava.net.preferIPv4Stack=true"
export LD_LIBRARY_PATH=/usr/local/hadoopec/hadoop/lib/native/:$LD_LIBRARY_PATH
**hdfs-site.xml**
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
<property>
<name>dfs.permission</name>
<value>false</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>/usr/local/hadoopec/hadoop/tmp/hdfs/name</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>/usr/local/hadoopec/hadoop/tmp/hdfs/data</value>
</property>
如果有人需要更多信息,请随时问我。
答案 0 :(得分:0)
我通过下载hadoop 2.8.0并完成所有精确配置解决,就像我之前的hadoop一样,虽然我不知道究竟是什么导致了错误或警告? 88
给了我localhost:50070
错误。如果有人能指出原因,我会很感激。