hadoop 在启动或者停止的时候需要输入yes确认问题

启动或者停止hadoop的时候,信息如下:

Stopping namenodes on [hadoop1 hadoop2]
The authenticity of host 'hadoop2 (172.17.0.10)' can't be established.
ECDSA key fingerprint is SHA256:2L+Ij0z9q1BkINoGu1JVxIoHKwyeJEZXZIVbll0t9fc.
ECDSA key fingerprint is MD5:9f:32:5f:a6:50:11:c6:42:53:5c:12:48:54:96:ba:0f.
Are you sure you want to continue connecting (yes/no)? hadoop1: stopping namenode
^Chadoop2: Host key verification failed.
The authenticity of host 'hadoop3 (172.17.0.11)' can't be established.
ECDSA key fingerprint is SHA256:b6wioHFMQ/54d1Oc8BLOBnPvT1L5Ss8zp2bbSkvPG7w.
ECDSA key fingerprint is MD5:d6:2a:51:53:e4:ea:5c:40:9b:8f:87:21:1f:d0:f9:f8.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'hadoop2 (172.17.0.10)' can't be established.
ECDSA key fingerprint is SHA256:2L+Ij0z9q1BkINoGu1JVxIoHKwyeJEZXZIVbll0t9fc.
ECDSA key fingerprint is MD5:9f:32:5f:a6:50:11:c6:42:53:5c:12:48:54:96:ba:0f.
Are you sure you want to continue connecting (yes/no)? hadoop1: no datanode to stop
^Chadoop2: Host key verification failed.
hadoop3: Host key verification failed.
Stopping journal nodes [hadoop1 hadoop2 hadoop3]
The authenticity of host 'hadoop2 (172.17.0.10)' can't be established.
ECDSA key fingerprint is SHA256:2L+Ij0z9q1BkINoGu1JVxIoHKwyeJEZXZIVbll0t9fc.
ECDSA key fingerprint is MD5:9f:32:5f:a6:50:11:c6:42:53:5c:12:48:54:96:ba:0f.
Are you sure you want to continue connecting (yes/no)? The authenticity of host 'hadoop3 (172.17.0.11)' can't be established.
ECDSA key fingerprint is SHA256:b6wioHFMQ/54d1Oc8BLOBnPvT1L5Ss8zp2bbSkvPG7w.
ECDSA key fingerprint is MD5:d6:2a:51:53:e4:ea:5c:40:9b:8f:87:21:1f:d0:f9:f8.
Are you sure you want to continue connecting (yes/no)? hadoop1: stopping journalnode

每次都需要输入yes,对于大集群来说,很尴尬

在hadoop-env.sh添加环境变量,如下:

export  HADOOP_SSH_OPTS= "-o StrictHostKeyChecking=no"

转载于:https://www.cnblogs.com/yjt1993/p/11314573.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值