在windows下配置hadoop-eclipse插件,并连接虚拟机的hadoop集群
?
- 编辑META-INF/ MANIFEST.MF
添加如下
Eclipse-LazyStart: true
Bundle-ClassPath: classes/,lib/hadoop-core.jar,lib/commons-cli-1.2.jar,lib/commons-configuration-1.6.jar,lib/commons-httpclient-3.0.1.jar,lib/commons-lang-2.4.jar,lib/jackson-core-asl-1.8.8.jar,lib/jackson-mapper-asl-1.8.8.jar
Bundle-Vendor: Apache Hadoop
?
- Cmd命令行工具进入eclipse-plugin目录执行命令ant 编译
- 到${hadoop.home}/build/contrib/eclipse-plugin目录可以找到hadoop-eclipse-plugin-1.1.2.jar文件,拷贝到${eclipse.home}/plugins/
- 启动eclipse然后其他的配置方式网上都有了。
??注意:请把windows的用户名该为与hadoop集群同名的用户名如grid