我正在尝试配置一个 hadoop - 主从环境。
http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/
到目前为止, 我已经创建了 2 个 vagrant(Ubuntu) 框并在机器和运行中安装了 Hadoop。 现在,我已经为我的主机分配了一个新的 ipaddress - 192.168.0.1 并尝试通过 ssh 连接到那台机器但不起作用。
ssh localhost - 有效
ssh master - 不工作
127.0.0.1 localhost
127.0.1.1 vagrant
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#hadoop
192.168.0.1 master
最佳答案
您需要按照以下步骤创建无密码 ssh 无密码登录。
编辑所有节点中的/etc/hosts。 添加主从 192.168.0.1 主控 192.168.0.2 从站
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub user@slave
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
现在试试 ssh master 和 ssh slave
关于linux - 配置多节点 hadoop 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34502161/