https://github.com/aliyun/aliyun-odps-java-sdk
ODPS SDK for Java Developers
https://github.com/aliyun/aliyun-odps-java-sdk
aliyun bigdata java maxcompute odps sdk
Last synced: 6 days ago
JSON representation
ODPS SDK for Java Developers
- Host: GitHub
- URL: https://github.com/aliyun/aliyun-odps-java-sdk
- Owner: aliyun
- License: other
- Created: 2015-07-08T09:10:55.000Z (over 10 years ago)
- Default Branch: release/0.53.x
- Last Pushed: 2025-12-12T07:05:56.000Z (about 2 months ago)
- Last Synced: 2025-12-13T13:34:31.664Z (about 2 months ago)
- Topics: aliyun, bigdata, java, maxcompute, odps, sdk
- Language: Java
- Size: 29.6 MB
- Stars: 93
- Watchers: 19
- Forks: 50
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: License
Awesome Lists containing this project
README
# ODPS SDK for Java Developers
[](https://travis-ci.org/aliyun/aliyun-odps-java-sdk)
[](https://maven-badges.herokuapp.com/maven-central/com.aliyun.odps/odps)
[](http://www.javadoc.io/doc/com.aliyun.odps/odps-sdk-core)
## 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](https://aliyun.github.io/aliyun-odps-java-sdk/)
## Requirements
- Java 8+
## Build
```shell
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:
```shell
mvn clean test
```
## Example
```java
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
- [Wang Shenggong](https://github.com/shellc)
- [Ni Zheming](https://github.com/nizheming)
- [Li Ruibo](https://github.com/lyman)
- [Guo Zhenhong](https://github.com/guozhenhong)
- [Zhong Wang](https://github.com/cornmonster)
- [Li Yida](https://github.com/idleyui)
- [Zhang Dingxin](https://github.com/dingxin-tech)
## License
licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)