简体   繁体   中英

how to configure ssh for hadoop standalone installation?

I am trying to install Hadoop in a standalone mode on my Ubuntu local host.

in this activity, I am using following 2 references.

1) https://www.digitalocean.com/community/tutorials/how-to-install-hadoop-in-stand-alone-mode-on-ubuntu-16-04

2) https://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/

now this first reference does not speak about any ssh configuration.I am able to implement these instructions successfully also able to execute given map-reduce program.

however as instructed in a second reference. we need to configure ssh to enable hadoop to access its nodes.

I followed the instructions given on site.

尝试过的SSH配置

although i am not able to connect to localhost via ssh.

I did a research about the same. https://askubuntu.com/questions/218344/why-am-i-getting-a-port-22-connection-refused-error

upon firing sudo netstat -anp | grep sshd , came to know that sshd is not running. sshd

after more of a googeling, I got a suggestion to install openssh-server, which I tried to do. sudo apt-get install openssh-server

following is the snapshot of error which I got. openssh服务器

my question is why is it not running at my end? Am I following right process? Am I missing any configurations?

thanks, Ash

You don't need to do so much. It is a damn simple process. You want to ssh with the

'localhost' in the standalone setup. Just follow to simple commands.

ssh-keygen

Make sure you press enter on every default setting.

ssh-copy-id -i .ssh/id_rsa.pub localhost

You will be asked for the password once. Enter it and then try ssh with localhost using command

ssh localhost

And you're good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM