赞
踩
- [root@hadoop102 job]# myhadoop.sh start
- =================== 启动 hadoop集群 ===================
- --------------- 启动 hdfs ---------------
- Starting namenodes on [hadoop102]
- Starting datanodes
- ERROR: Attempting to operate on hdfs namenode as root
- ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation.
- ERROR: Attempting to operate on hdfs datanode as root
- ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation.
- Starting secondary namenodes [hadoop104]
- ERROR: Attempting to operate on hdfs secondarynamenode as root
- ERROR: but there is no HDFS_SECONDARYNAMENODE_USER defined. Aborting operation.
- --------------- 启动 yarn ---------------
- Starting resourcemanager
- Starting nodemanagers
- ERROR: Attempting to operate on yarn resourcemanager as root
- ERROR: but there is no YARN_RESOURCEMANAGER_USER defined. Aborting operation.
- ERROR: Attempting to operate on yarn nodemanager as root
- ERROR: but there is no YARN_NODEMANAGER_USER defined. Aborting operation.
- --------------- 启动 historyserver ---------------
- historyserver is running as process 13059. Stop it first.
-
vi /etc/profile
- export HDFS_NAMENODE_USER=root
- export HDFS_DATANODE_USER=root
- export HDFS_SECONDARYNAMENODE_USER=root
- export YARN_RESOURCEMANAGER_USER=root
- export YARN_NODEMANAGER_USER=root
source /etc/profile
添加再顶部
- vim start-dfs.sh
- 添加:
- HDFS_DATANODE_USER=root
- HADOOP_SECURE_DN_USER=hdfs
- HDFS_NAMENODE_USER=root
- HDFS_SECONDARYNAMENODE_USER=root
- vim stop-dfs.sh
- 添加:
- HDFS_DATANODE_USER=root
- HADOOP_SECURE_DN_USER=hdfs
- HDFS_NAMENODE_USER=root
- HDFS_SECONDARYNAMENODE_USER=root
- vim start-yarn.sh
- 添加:
- YARN_RESOURCEMANAGER_USER=root
- HADOOP_SECURE_DN_USER=yarn
- YARN_NODEMANAGER_USER=root
- vim stop-yarn.sh
- 添加:
- YARN_RESOURCEMANAGER_USER=root
- HADOOP_SECURE_DN_USER=yarn
- YARN_NODEMANAGER_USER=root
- vim /etc/selinux/config
- 修改:
- SELINUX=enforcing 改为 SELINUX=disabled
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。