"Gandalf" CDH5.2 's maven dependency

Source: Internet
Author: User

The program that has been developed Hadoop2.2.0 with Maven before. Environment changed to CDH5.2 after the error, found that Maven relies on the library problem.
have been using http://mvnrepository.com/to find Maven dependencies before. But such sites can only find generic maven dependencies, not including CDH dependencies. Fortunately Cloudera provides a CDH dependency:
Http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_vd_cdh5_maven_repo.html
In short, add the following two parts to the pom file: 1. Libraries pointing to Cloudera <repositories> <repository> <ID> cloudera</ID> <URL>https://repository.cloudera.com/artifactory/cloudera-repos/</url< /c10>> </repository> </repositories>

2.CDH dependent, for example <dependency> <groupId>org.apache.hadoop</groupId> <artifactid> hadoop-common</artifactid> <version>2.5.0-cdh5.2.0</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactid> hadoop-hdfs</artifactid> <version>2.5.0-cdh5.2.0</version> </dependency>          <dependency> <groupId>org.apache.hadoop</groupId> <artifactid> hadoop-maven-plugins</artifactid > <version>2.5.0-cdh5.2.0</version> </dependency>          <dependency> <groupId>org.apache.hbase</groupId> <artifactid> hbase-client</artifactid> <version>0.98.6-cdh5.2.0</version> </dependency>

Many other CDH dependencies please refer to http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cdh_vd_cdh5_maven_repo.html

"Gandalf" CDH5.2 's maven dependency

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.