Hadoop: require root's password after enter “start-all.sh”

后端 未结 6 1324
执念已碎
执念已碎 2020-12-14 19:08

I have installed Hadoop and SSH on my laptop. \"ssh localhost\" works fine. After formatting HDFS, I tried to start hadoop.

munichong@GrindPad:~$ sudo /usr/         


        
6条回答
  •  再見小時候
    2020-12-14 19:45

    It seems you have logged-in as root and invoking start-all.sh.

    Instead, login as owner of directory $SPARK_HOME and invoke spark's
    start-all.sh.

    (or)

    Let user hadoop be the owner of directory $SPARK_HOME and currently logged in as root, then command would be as follows:

    sudo -u hadoop -c start-all.sh
    

    Assumption:
    a) PATH has reference to directory $SPARK_HOME/bin
    b) Certificate based authentication is configured for user hadoop

提交回复
热议问题