我是Hadoop的新手,今天我尝试安装伪分布式模式。以下是我关注的链接:http://www.tutorialspoint.com/hadoop/hadoop_enviornment_setup.htm
一切都很好,直到我运行命令:
start-dfs.sh
以下是打印出来的内容:
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
Starting namenodes on []
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
Starting secondary namenodes [0.0.0.0]
0.0.0.0: ssh: connect to host 0.0.0.0 port 22: Connection refused
请帮我解决这个问题。我在这个网站上尝试了很多解决方案,包括this,但没有运气。感谢
根据以下评论的要求,这里是hdfs-site.xml的内容:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.name.dir</name>
<value>file:///home/hadoop/hadoopinfra/hdfs/namenode </value>
</property>
<property>
<name>dfs.data.dir</name>
<value>file:///home/hadoop/hadoopinfra/hdfs/datanode </value>
</property>
</configuration>
这是core-site.xml的内容:
<configuration>
<property>
<name>fs.default.name </name>
<value> hdfs://localhost:9000 </value>
</property>
</configuration>