项目作者: cloudera

项目描述 :
Cloudera CDP SDK for Java
高级语言: Java
项目地址: git://github.com/cloudera/cdp-sdk-java.git
创建时间: 2019-08-21T15:28:52Z
项目社区:https://github.com/cloudera/cdp-sdk-java

开源协议:Other

下载


Cloudera CDP SDK for Java

The Cloudera CDP SDK for Java allows Java developers to work with Cloudera
CDP services.

Getting Started

Prerequisites

  • Java 11 or later
  • Maven 3.5 or later

Installing the SDK

The CDP SDK is available through Cloudera’s maven repository. To include it
in your Maven project, use the following declarations:

Add the Cloudera Maven Repository

  1. <repositories>
  2. <repository>
  3. <id>cloudera.repo</id>
  4. <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
  5. <name>Cloudera Repository</name>
  6. </repository>
  7. </repositories>

Include the CDP SDK Module

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.

  1. <dependencies>
  2. <dependency>
  3. <groupId>com.cloudera.cdp</groupId>
  4. <artifactId>cdp-sdk-java</artifactId>
  5. </dependency>
  6. <dependency>
  7. <groupId>org.slf4j</groupId>
  8. <artifactId>slf4j-log4j12</artifactId>
  9. </dependency>
  10. <dependency>
  11. <groupId>org.slf4j</groupId>
  12. <artifactId>jcl-over-slf4j</artifactId>
  13. <scope>runtime</scope>
  14. </dependency>
  15. </dependencies>

Building the SDK from source

After checking out the source code, you can build it using Maven.

  1. mvn clean install

Sample SDK client

This is a sample project for a cdp-sdk-java client.

  1. sdk/cdp-sdk-java-client