Skip to content

jqdelove/aliyun-odps-java-sdk

 
 

Repository files navigation

ODPS SDK for Java Developers

Build Status Maven Central Javadocs

Requirements

  • Java 8+

Build

git clone ...
cd aliyun-odps-java-sdk
mvn clean package -DskipTests

Run Unittest

  • you will have to configure there test.conf files in source tree:
odps-sdk-impl/odps-common-local/src/test/resources/test.conf
odps-sdk-impl/odps-mapred-local/src/test/resources/test.conf
odps-sdk-impl/odps-graph-local/src/test/resources/test.conf
odps-sdk/odps-sdk-lot/src/main/java/com/aliyun/odps/lot/test/resources/test.conf
odps-sdk/odps-sdk-core/src/test/resources/test.conf
  • in test.conf, set testMode to online, and set debugEnabled to false, and leave domain.*, taobao.* to empty
  • mvn clean test

Example

Account account = new AliyunAccount("YOUR_ACCESS_ID", "YOUR_ACCESS_KEY");

Odps odps = new Odps(account);

// optional, the default endpoint is
odps.setEndpoint("http://service.odps.aliyun.com/api");
odps.setDefaultProject("YOUR_PROJECT_NAME");

for (Table t : odps.tables()) {
  System.out.println(t.getName());
}

Authors && Contributors

License

licensed under the Apache License 2.0

About

ODPS SDK for Java Developers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.7%
  • ANTLR 1.3%