自己配置安装Hadoop,按照网上搜索的教程都配置好了。SSH正常登录,slaves配置的机器名:Slave1,Slave2。启动dfs就提示:Name or service not knownstname Slave1。更改配置按照教程改成机器IP,启动dfs总是要求输入yes的回答,2台总有1台启动不起来。当然原因就是用IP进行SSH登录的时候总提示
The authenticity of host '192.168.0.31' can't be established.
RSA key fingerprint is 52:9b:e2:62:93:01:88:e6:46:a8:16:68:52:91:8a:ea.
Are you sure you want to continue connecting (yes/no)?
搜索无数解决方案,终于找到了屏蔽这个提示的方法,但启动起来后就是输出信息少了点东西,自己看把
就是下面这2行设置,让你启动的时候不再提示can't be established。但是前提是,你的hadoop/etc/hadoop/slaves 必须是IP列表,要不然有回到了:Name or service not knownstname Slave1