单机伪分布式模式 运行MapReduce程序 配置问题

2019-04-14 18:51发布

参考:http://stackoverflow.com/questions/8693723/remote-access-to-namenode-is-not-allowed-despite-the-services-are-already-starte?answertab=active#tab-top 参考:http://galpha.iteye.com/blog/1044355 单机伪分布模式下eclipse调试Mapreduce raid程序: 配置为localhost时,使用参数hdfs://localhost:9000/user/hadoop/files 提示expect  file:/// 因此将localhost改为ip地址,这里注意客户端和服务器的所有配置文件都必须改为本机的ip地址,不能不一致(当本机ip地址与localhost定义为 用一个名称时容易在改动时忘记改一侧的配置文件,而造成出错) 此外在本机上启动namenode 时,hostname需要对应的/etc/hosts中定义的ip地址对应的主机名称 如果此时运行提示hdfs://192.168.2.237:9000/.....     expected hdfs://jiao:9000(192.168.2.237为本机ip地址,jiao为本机名称) 应该设置运行参数为hdfs://jiao:9000/...
可以使用 telnet ip 端口号 命令查看端口是否可用 或者直接用           netstat  -a  | grep 端口号 查看