1. Introduction:
Import the source code to eclipse to easily read and modify the source.
2. Description of the environment:
Mac
MVN Tools (Apache Maven 3.3.3)
3.hadoop (CDH5.4.2)
1. Go to the Hadoop root and execute:
MVN org.apache.maven.plugins:maven-eclipse-plugin:2.6: eclipse-ddownloadsources=true - Ddownloadjavadocs=tru
Note:
If you do not specify the version number of Eclipse, you will get the following error, which should be a compatibility issue with version 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 the merge when Span style= "color: #800000;" > '
2. Open Eclipse, import the project
4.HBase (CDH5.4.2)
1. Go to the root directory and execute:
MVN Eclipse:eclipse
2. Open Eclipse for import:
Hadoop (hadoop,hbase) components import to eclipse