Hadoop安装常见问题1-publickey,gssapi-keyex,gssapi-with-mic,password

Posted keep-go-on

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hadoop安装常见问题1-publickey,gssapi-keyex,gssapi-with-mic,password相关的知识,希望对你有一定的参考价值。

问题描述

造成该问题ssh没有设置授权访问照成的。

错误描述

Starting namenodes on [192.168.72.102]
上一次登录:四 69 21:39:41 CST 2022pts/1 上
192.168.72.102: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Starting datanodes
上一次登录:四 69 21:41:36 CST 2022pts/1 上
localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Starting secondary namenodes [localhost.localdomain]
上一次登录:四 69 21:41:36 CST 2022pts/1 上
localhost.localdomain: Warning: Permanently added 'localhost.localdomain' (ECDSA) to the list of known hosts.
localhost.localdomain: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

本机为集群解决方式

创建ssh公私钥

 ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa

以公钥创建授权key

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

授权

 chmod 0600 ~/.ssh/authorized_keys

以上是关于Hadoop安装常见问题1-publickey,gssapi-keyex,gssapi-with-mic,password的主要内容,如果未能解决你的问题,请参考以下文章

Hadoop安装常见问题1-publickey,gssapi-keyex,gssapi-with-mic,password

Hadoop安装常见问题1-publickey,gssapi-keyex,gssapi-with-mic,password

VMware 虚拟机安装 hadoop 2.6.0 完全分布式集群

一Hadoop 2.x 分布式安装部署

虚拟机搭建Hadoop集群

安装hadoop遇到的小问题及解决办法