关于HDFS Eclipse插件
2017-11-12 本文已影响0人
0_9f3a
hadoop-eclipse可以方便的上传下载HDFS中的文件
1.需要的文件
hadoop-eclipse-plugin-2.7.3.jar(注意要和eclipse版本相同)
2.将hadoop-eclipse-plugin-2.7.3.jar拷到plugins文件夹中 重启Eclipse
3.Window-perference

Hadoop installation directory 选择HADOOP解压目录(在Windows中)
4.在软件右上角单击

单机Map/Reduce启动插件
5.配置插件
在配置文件之前 强烈建议设置计算机用户名为root

点击New Hadoop Locaton建立一个新的连接

注意在hdfs-site.xml中 设置的HDFS端口为8020端口,因此 在DFS master中也设置它

这样就配置完成单机eclipse左上方的DFS Location就可以对HDFS进行操作
总结一下需要注意的问题
1.计算机用户名设置为root
2.当hadoop-eclipse-plugin-2.7.3.jar复制到plugin之前最好备份一下eclipse,因为这种方式 容易出错