다음 오류의 가능한 원인은 무엇입니까? 루트 사용자로 스크립트를 실행합니다. 나는 루트 사용자가 슈퍼유저 권한을 가지고 있어야 한다고 생각합니다. 다음 오류로 인해 실패합니다.
mkdir: '/var/log/hadoop' 디렉터리를 생성할 수 없습니다: 권한이 거부되었습니다.
(base) [root@localhost ~]# cat /tmp/hadoop-service-startup.log
STARTING NAMENODE
WARNING: HADOOP_NAMENODE_OPTS has been replaced by HDFS_NAMENODE_OPTS. Using value of HADOOP_NAMENODE_OPTS.
WARNING: /var/log/hadoop does not exist. Creating.
mkdir: cannot create directory ‘/var/log/hadoop’: Permission denied
ERROR: Unable to create /var/log/hadoop. Aborting.
COMPLETE
STARTING SECONDARY NAMENODE
WARNING: HADOOP_SECONDARYNAMENODE_OPTS has been replaced by HDFS_SECONDARYNAMENODE_OPTS. Using value of HADOOP_SECONDARYNAMENODE_OPTS.
WARNING: /var/log/hadoop does not exist. Creating.
mkdir: cannot create directory ‘/var/log/hadoop’: Permission denied
ERROR: Unable to create /var/log/hadoop. Aborting.
COMPLETE
STARTING DATANODE
WARNING: HADOOP_DATANODE_OPTS has been replaced by HDFS_DATANODE_OPTS. Using value of HADOOP_DATANODE_OPTS.
WARNING: /var/log/hadoop does not exist. Creating.
mkdir: cannot create directory ‘/var/log/hadoop’: Permission denied
ERROR: Unable to create /var/log/hadoop. Aborting.
COMPLETE
STARTED DAEMONS
4884 Jps
STARTING RESOURCEMANGER
WARNING: /var/log/hadoop does not exist. Creating.
mkdir: cannot create directory ‘/var/log/hadoop’: Permission denied
ERROR: Unable to create /var/log/hadoop. Aborting.
COMPLETE
STARTING NODEMANGER
WARNING: /var/log/hadoop does not exist. Creating.
mkdir: cannot create directory ‘/var/log/hadoop’: Permission denied
ERROR: Unable to create /var/log/hadoop. Aborting.
COMPLETE
STARTING HISTORYSERVER
WARNING: /var/log/hadoop does not exist. Creating.
mkdir: cannot create directory ‘/var/log/hadoop’: Permission denied
ERROR: Unable to create /var/log/hadoop. Aborting.
COMPLETE
STARTED DAEMONS
5012 Jps