Hadoop: start-dfs.sh permission denied

后端 未结 9 911
攒了一身酷
攒了一身酷 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:44

    You are trying to ssh to your own machine (localhost) and missing the authorized_keys file which allows login.

    This file in SSH specifies the SSH keys that can be used for logging into the user account for which the file is configured.

    Follow the below two steps to configure it correctly.

    Generate new keygen with the below command in terminal:

    ssh-keygen
    

    Press enter so as to retain the default name id_rsa.pub

    Now register the generated key file:

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

提交回复
热议问题