To use the CDK modules in a Java project add the Cloudera repository to your Maven POM:
<repository> <id>cdh.repo</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos</url> <name>Cloudera Repositories</name> <snapshots> <enabled>false</enabled> </snapshots> </repository>
Then add a dependency for each module you want to use by referring to the information listed on the Dependency Information pages listed below. You can also view the transitive dependencies for each module.
As a general rule, CDK modules mark Hadoop component dependencies as having provided scope, since in many cases the dependencies are provided by the container that the code is running in.
For example,
The following containers provide the dependencies listed:
However, there are some cases where you may have to provide the relevant Hadoop component dependencies yourself: