start-dfs.sh 启动成功 datanode未启动
在namenode中启动报错
test2: Exception in thread "main" java.net.UnknownHostException: unknown host: test1
到test2中日志查看报错信息
ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.net.UnknownHostException: hadoop: hadoop: Name or service not known
Exception in thread "main" java.net.UnknownHostException: hadoop: hadoop: Name or service not known
这是因为在test2中未做对test1主机名称的映射
在/etc/hosts中添加对test1映射
test1 ip地址 test1