The Cloudera CDP SDK for Java allows Java developers to work with Cloudera CDP services.
- Java 11 or later
- Maven 3.5 or later
The CDP SDK is available through Cloudera's maven repository. To include it in your Maven project, use the following declarations:
<repositories>
<repository>
<id>cloudera.repo</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
<name>Cloudera Repository</name>
</repository>
</repositories>
The CDP SDK uses slf4j for logging, so you must also include an slf4j implementation for whichever logging library your project will use (eg: log4j, logback, etc), and the jcl-over-slf4j bridge. In this example, we include the log4j implementation.
<dependencies>
<dependency>
<groupId>com.cloudera.cdp</groupId>
<artifactId>cdp-sdk-java</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
After checking out the source code, you can build it using Maven.
mvn clean install
This is a sample project for a cdp-sdk-java client.
sdk/cdp-sdk-java-client