报错 root: ssh: Could not resolve hostname root: Name or service not known
1.分析问题 hosts 与 slaves 配置不一致
方案二:
https://my.oschina.net/u/1399755/blog/1503667
3)解决方法:
在/etc/profile文件中添加:
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS=-Djava.library.path=$HADOOP_HOME/lib
注意:是export HADOOP_OPTS=-Djava.library.path=$HADOOP_HOME/lib,而不是export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
法三:删除公钥信息
ssh-keygen -R 172.23.210.43
https://blog.csdn.net/jeikerxiao/article/details/84105529
免密登录配置三部曲推荐
ssh-copy-id -i ~/.ssh/id_rsa.pub root@172.23.210.43
法四 多次格式化的朋友可以看过来
https://blog.csdn.net/zimojiang/article/details/80725084