1.配置远程仓库
<repositories>
<repository>
<id>cloudera-releases</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
添加版本属性
<properties>
<cdh.version>2.6.0-cdh5.7.0</cdh.version>
</properties>
添加依赖包
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${cdh.version}</version>
<scope>provided</scope>
</dependency>