win7 下远程连接Linux里的hadoop 失败问题
在Linux环境里的hadoop的配置文件:
[root@localhost conf]# cat mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>192.168.172.128:9001</value>
</property>
</configuration>
[root@localhost conf]# cat core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
===================================
标红处应该用具体的ip,不要用localhost,这样win7 中的eclipse 连接不上Linux里的hadoop。
连接目的:本地开发,提交作业。
本文介绍了解决Win7环境下使用Eclipse远程连接Linux中Hadoop集群的问题。通过修改Hadoop配置文件中的主机名从localhost改为具体IP地址,确保了连接的成功。此配置适用于本地开发及作业提交。
1546

被折叠的 条评论
为什么被折叠?



