Hadoop DFS启动

时间:2017-02-16 12:06:49

标签: hadoop

大家好我是Hadoop开发的新手。我刚开始使用hadoop并在我的电脑上安装了Hadoop并开始配置它但是,我被困在一个我试图启动DFS的地方,我在控制台上发现了以下内容

Starting namenodes on [localhost]
localhost: Read from socket failed: Connection reset by peer
localhost: Read from socket failed: Connection reset by peer
Starting secondary namenodes [0.0.0.0]
0.0.0.0: Read from socket failed: Connection reset by peer

我已经运行了命令$ start-dfs.sh 我使用的是ubuntu 14.04 LTS

任何人都可以帮我解决这个问题我设置了所有环境变量,包括JAVA_HOME

.bash文件

export HADOOP_HOME=/usr/local/hadoop 
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 JAVA_HOME=/usr/local/java-7-openjdk-amd64 
export PATH=$PATH:$HADOOP_HOME/sbin 
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$HADOOP_HOME/bin

Core-site.xml

<configuration> 
 <property> 
 <name>fs.default.name</name> 
 <value>hdfs://localhost:9000</value> 
 </property> 
</configuration>

请帮我解决这个问题 感谢

0 个答案:

没有答案