Hadoop掉坑记录 本文共有2603个字,关键词: ERROR: Attempting to operate on yarn resourcemanager as root ERROR: but there is no YARN_RESOURCEMANAGER_USER defined. Aborting operation. Starting nodemanagers ERROR: Attempting to operate on yarn nodemanager as root ERROR: but there is no YARN_NODEMANAGER_USER defined. Aborting operation. ERROR: Attempting to operate on hdfs namenode as root ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation. Starting datanodes ERROR: Attempting to operate on hdfs datanode as root ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation. 将start-dfs.sh,stop-dfs.sh两个文件顶部添加以下参数 #!/usr/bin/env bash HDFS_DATANODE_USER=root HADOOP_SECURE_DN_USER=hdfs HDFS_NAMENODE_USER=root HDFS_SECONDARYNAMENODE_USER=root 还有,start-yarn.sh,stop-yarn.sh顶部也需添加以下: #!/usr/bin/env bash YARN_RESOURCEMANAGER_USER=root HADOOP_SECURE_DN_USER=yarn YARN_NODEMANAGER_USER=root ./start-dfs.sh ./start-yarn.sh jps查看 netstat -aptn确认端口 http://ip:9870 http://ip:8088 Namenode 端口: 9871 dfs.namenode.https-address The namenode secure http server address and port. 9870 dfs.namenode.http-address The address and the base port where the dfs namenode web ui will listen on. 9820 fs.defaultFS 指定HDFS运行时nameNode地址 Secondary NN 端口: 9869 dfs.namenode.secondary.https-address The secondary namenode HTTPS server address and port 9868 dfs.namenode.secondary.http-address The secondary namenode HTTPS server address and port Datanode 端口: 9867 dfs.datanode.ipc.address The datanode ipc server address and port. 9866 dfs.datanode.address The datanode server address and port for data transfer. 9865 dfs.datanode.https.address The datanode secure http server address and port 9864 dfs.datanode.http.address The datanode http server address and por Yarn 端口 8088 yarn.resourcemanager.webapp.address http服务端口 「一键投喂 软糖/蛋糕/布丁/牛奶/冰阔乐!」 赞赏 × 梦白沙 (๑>ڡ<)☆谢谢老板~ 1元 2元 5元 10元 50元 任意金额 2元 使用微信扫描二维码完成支付 版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。 ubuntu系统,Docker 2022-04-15 评论 337 次浏览