Hadoop: start-dfs.sh permission denied

后端 未结 9 930
攒了一身酷
攒了一身酷 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 15:03

    Well I am now facing with this problem either, and before I got in this question, I use the method below.

    1. sudo -s -H

    use this code to login as root user

    1. ssh localhost

    login by using ssh (if you are just trying to use single node mode)

    1. ./sbin/start-dfs.sh

    ./sbin/start-yarn.sh

    "cd" to your Hadoop installation route then print that code to start the HDFS&MapRedude , then you won't face the permittion problem again.

    I guess the cause of this problem :

    I use the root user to init the Hadoop environment, so the several folders were create by root user, so that When I now using my own account like 'Jake', I don't have permit to start the service(During that time the system need to access the LOGS )

    enter image description here

提交回复
热议问题