Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hadoop: connect to host localhost port 22: Connection refused when running start-dfs.sh

Tags:

hadoop

When starting the latest (Okt 2014) Hadoop with start-dfs.sh we are seeing:

connect to host localhost port 22: Connection refused when running

like image 890
stevek-pro Avatar asked Oct 27 '25 15:10

stevek-pro


1 Answers

Install openssh server.

For Ubuntu command is :

sudo apt-get install openssh-server

In hadoop-env.sh file ( present in /etc/hadoop) add the following line :

export HADOOP_SSH_OPTS="-p 22"      
like image 135
Kartikeya Rana Avatar answered Oct 29 '25 05:10

Kartikeya Rana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!