Skip to content

aliyun/aliyun-odps-java-sdk

Repository files navigation

ODPS SDK for Java Developers

Build Status Maven Central Javadocs

Documentation

The documentation is currently under construction and is available in Chinese only at this moment. The documentation is built using Docusaurus. Please refer to the docs directory for more details.

View Chinese Documentation

Requirements

  • Java 8+

Build

git clone https://github.com/aliyun/aliyun-odps-java-sdk 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 

After configuration, you can run the unit tests using the following command:

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8