0

I'm newbie to Hadoop and today I'm trying to install pseudo distributed mode. Here is the link I follow: http://www.tutorialspoint.com/hadoop/hadoop_enviornment_setup.htm Everything is fine until I run the command:

start-dfs.sh 

Here is what printed out:

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

Please help me solve this. I tried many solutions on this site including this but no luck. Thanks

As required by comments below, here is content of 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>

And here is content of core-site.xml:

<configuration>
<property>
  <name>fs.default.name </name>
  <value> hdfs://localhost:9000 </value> 
</property>
</configuration>
Community
  • 1
  • 1
lenhhoxung
  • 2,530
  • 2
  • 30
  • 61

0 Answers0