Raveesh Sharma
Raveesh Sharma

Reputation: 1486

Hadoop in pseudo-distributed Mode. Connection refused

P.S: Please do not mark this as duplicate

Hi,

I have been trying to set up and run Hadoop in the 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 have done. I have installed the open-ssh server and the client using:

sudo apt-get install openssh-server openssh-client

I have started the ssh server as in

sudo service ssh start

And I get the output as:

ssh start/running, process 5466

I have 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 the start-all script it still shows connection refused. I have also tried the tips mentioned here but I am unable to get it to work. I am behind a firewall and I am using Ubuntu. Is there something that I am missing?

Any help is really appreciated.

Thanks.

Upvotes: 5

Views: 3525

Answers (1)

Razvan
Razvan

Reputation: 10093

After you install ssh, you should also enable password-less login.

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

Upvotes: 3

Related Questions