首页 > 编程语言 >Hadoop启动集群报错:Starting namenodes on [hadoop01] hadoop01: root@hadoop01: Permission denied (publickey,

Hadoop启动集群报错:Starting namenodes on [hadoop01] hadoop01: root@hadoop01: Permission denied (publickey,

时间:2023-04-28 10:24:36浏览次数:50  
标签:Permission hadoop01 gssapi publickey 报错 USER root

搭建三个hadoop集群的时候,master没有启动namenode和datanode,

报错:

Starting namenodes on [hadoop01]
hadoop01: root@hadoop01: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Starting datanodes
hadoop01: root@hadoop01: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

这里是由于没有设置权限问题

解决办法:

还需要修改文件:

在hadoop下面的sbin目录下修改配置文件

pwd:/opt/module/hadoop-3.1.3/sbin

 1.把上方两个文件加上以下代码:

#!/usr/bin/env bash
HDFS_DATANODE_USER=root
HADOOP_SECURE_DN_USER=hdfs
HDFS_NAMENODE_USER=root
HDFS_SECONDARYNAMENODE_USER=root

 2.修改yarn文件

 

#!/usr/bin/env bash
YARN_RESOURCEMANAGER_USER=root
HADOOP_SECURE_DN_USER=yarn
YARN_NODEMANAGER_USER=root

 

3.随后正常启动就可以了

标签:Permission,hadoop01,gssapi,publickey,报错,USER,root
From: https://www.cnblogs.com/hellotoworld/p/17361084.html

相关文章