CSDN_Yann
csdn_Yann
2017-11-07 14:48

初入Hadoop,start-all.sh问题

  • ssh
  • hadoop

Hadoop 版本:hadoop-2.6.5
环境:
图片说明
HODOOP_HOME 目录也不同:都在各自用户的目录下
e.g:
/home/yann/hadoop
/home/ubuntu01/hadoop
/home/ubuntu02/hadoop


当我在启动的时候start-all.sh
提示我如下错误:
yann@yann-laptop:~/develop/tool/hadoop-2.6.5/sbin$ ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [yann-laptop]
yann-laptop: namenode running as process 7041. Stop it first.
yann@ubuntu01-virtual-machine's password: The authenticity of host 'ubuntu02-virtual-machine (192.168.2.182)' can't be established.
ECDSA key fingerprint is 57:ee:92:a8:85:85:ef:16:26:a3:b7:1d:54:77:19:18.
Are you sure you want to continue connecting (yes/no)?


hadoop/etc/hadoop/slaves:
ubuntu01-virtual-machine
ubuntu02-virtual-machine


SSH公钥已经配置好:
ssh-rsa XXXXX......XXXXXX yann@yann-laptop
ssh-rsa XXXXX......XXXXXX ubuntu01@ubuntu01-virtual-machine
ssh-rsa XXXXX......XXXXXX ubuntu02@ubuntu02-virtual-machine


从提示来看它使用了yann去连接ubuntu01-virtual-machine。

请问这种情况如何配置(主从机器不同的用户名)?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答