步骤
- 安装maven,protoc(http://www.aboutyun.com/thread-8212-1-1.html)
- 获取源码
- 进入hadoop-2.*-src\hadoop-maven-plugins,运行mvn install
- 进入hadoop-2.*-src,运行mvn eclipse:eclipse -DskipTests
- 进入eclipse,Import->General->Existing Projects into Workspace
- 导入源码,ok~
问题
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on project service-extractor: Request to merge when ‘filtering’ is not identical. Original=resource src/main/resources: output=bin, include=[/.properties], exclude=[/.java], test=false, filtering=true, merging with=resource src/main/resources: output=bin, include=[], exclude=[/.properties|/.java], test=false, filtering=false -> [Help 1]
解决:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse -DskipTests