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.
- Java 8+
git clone https://github.com/aliyun/aliyun-odps-java-sdk
cd aliyun-odps-java-sdk
mvn clean package -DskipTests
- 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
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());
}
licensed under the Apache License 2.0