1.简介:
将源代码import到eclipse可以方便的阅读和修改源码。
2.环境说明:
mac
mvn工具(Apache Maven 3.3.3 )
3.hadoop(CDH5.4.2)
1.进入hadoop根目录,执行:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse -DdownloadSources=true -DdownloadJavadocs=tru
注:
如果不指定eclipse的版本号,将会爆如下错误,应该是2.8版本的兼容问题。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on project hadoop-common: Request to merge when ‘filtering‘ is not identical. Original=resource src/main/resources: output=target/classes, include=[], exclude=[common-version-info.properties|**/*.java], test=false, filtering=false, merging with=resource src/main/resources: output=target/classes, include=[common-version-info.properties], exclude=[**/*.java], test=false, filtering=true -> [Help 1]
2.打开eclipse,将工程import
4.HBase(CDH5.4.2)
1.进入到根目录,执行:
mvn eclipse:eclipse
2.打开eclipse进行import:
时间: 2024-10-21 12:30:48