win10 eclipse连接虚拟机ubuntu中的hdfs

1.eclipse安装连接hadoop的插件hadoop-eclipse-plugin-2.6.0(注意自己hadoop的版本)

将该插件放在eclipse安装路径的plugins文件夹中。

ps:我虚拟机中的hadoop是2.7.1版本的,hadoop-eclipse-plugin-2.6.0版本也能用。

2.配置Map/Reduce Locations

(1)window---》preference---》输入自己的hadoop安装路径

(2)window---》show view---》map

 (3)右击 new hadoop location

 

3.将虚拟机中的core-site.xml中的localhost改成ip地址192.168.2.128

4.新建mapreduce项目即可刷新出dfs location信息

原文地址:https://www.cnblogs.com/ssyh/p/11512205.html