Hadoop: start-dfs.sh permission denied

后端 未结 9 936
攒了一身酷
攒了一身酷 2020-12-13 14:04

I am installing Hadoop on my laptop. SSH works fine, but I cannot start hadoop.

munichong@GrindPad:~$ ssh localhost
Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0         


        
9条回答
  •  被撕碎了的回忆
    2020-12-13 14:54

    I think the problem is that root and user's ssh connection. here is my copy https://askubuntu.com/questions/497895/permission-denied-for-rootlocalhost-for-ssh-connection Solved my case.

    By default, the SSH server denies password-based login for root. In /etc/ssh/sshd_config,

    change: PermitRootLogin without-password to PermitRootLogin yes

    And restart SSH: sudo service ssh restart

    Or, you can use SSH keys. If you don't have one, create one using ssh-keygen (stick to the default for the key, and skip the password if you feel like it). Then do sudo -s (or whatever your preferred method of becoming root is), and add an SSH key to /root/.ssh/authorized_keys:

    cat /home/user/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys

提交回复
热议问题