简易步骤:eclipse
1拷插件到eclipse的plugins中;2关联安装的hadoop;oop
3新建 hadoop location(配置hadoop的端口等相关信息;4跑程序。
spa
详细步骤:插件
1。网上下载hadoop的eclipse插件ip
这是个人:hadoop-eclipse-plugin-1.2.1.jarhadoop
2。添加下载的插件到eclipse 的plugins中资源
3。将本地的hadoop 安装路径添加到eclipse中get
打开eclipse Window->Prefrences->Hadoop Map/Reduce 将你的hadoop的本地路径添加进去input
4。 显示大象 :Window->Show View->Other-> Map/Reduce Locationsit
5。new hadoop location
点击4图中的Localtion->new hadoop location
6。新建map/reduce project
7。打开资源视图,就能看到hadoop的管理文件夹 ,能够在此上传文件。
Window-> Open Perspective ->Others ->Resource
8。run-> run configurations 并在arguments中输入参数
(以hadoop自带的wordcount 输入文件夹input 输出output)
hdfs://localhost:9000/user/lcj/input hdfs://localhost:9000/user/lcj/output
点击run运行。
结果:
刷新资源视图中的dfs以后会多出一个文件夹output