Hadoop in pseudo-distributed mode. Connection refused

PS: Do not put it as a duplicate

Hi,

I am trying to configure and start Hadoop in pseudo-distributed mode. When I run the start -all.sh script, I get this output:

starting namenode, logging to /home/raveesh/Hadoop/hadoop-0.20.2/bin/../logs/..
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
starting jobtracker, logging to /home/raveesh/Hadoop/hadoop-0.20.2/bin/../logs/..
localhost: ssh: connect to host localhost port 22: Connection refused
raveesh@raveeshL:~/Hadoop/hadoop-0.20.2/bin$ 

Here is what I did. I installed the open-ssh server and client using:

sudo apt-get install openssh-server openssh-client

I started the ssh server, as in

sudo service ssh start

And I get the output as:

ssh start/running, process 5466

I also run the following commands:

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

But when I run start-all script, it still shows that the connection is rejected. I also tried the tips mentioned here here , but I can't get it to work. I am behind a firewall and I am using Ubuntu. Is there something I'm missing?

Any help really appreciated.

Thank.

+5
source share
1 answer

ssh .

% ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
% cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
+3

All Articles