2016-05-12 07:11:20 +01:00
|
|
|
# odps resource
|
|
|
|
|
2016-05-12 13:05:36 +01:00
|
|
|
> Manage resources in ODPS (Open Data Processing Service).
|
2016-05-12 07:11:20 +01:00
|
|
|
|
|
|
|
- Show resources in the current project:
|
|
|
|
|
|
|
|
`list resources;`
|
|
|
|
|
2016-05-12 14:14:27 +01:00
|
|
|
- Add file resource:
|
2016-05-12 07:11:20 +01:00
|
|
|
|
2020-05-22 13:31:24 +01:00
|
|
|
`add file {{filename}} as {{alias}};`
|
2016-05-12 07:11:20 +01:00
|
|
|
|
2016-05-12 14:14:27 +01:00
|
|
|
- Add archive resource:
|
2016-05-12 07:11:20 +01:00
|
|
|
|
2016-05-12 13:10:28 +01:00
|
|
|
`add archive {{archive.tar.gz}} as {{alias}};`
|
2016-05-12 07:11:20 +01:00
|
|
|
|
2016-05-12 14:14:27 +01:00
|
|
|
- Add .jar resource:
|
2016-05-12 07:11:20 +01:00
|
|
|
|
2016-05-12 13:05:36 +01:00
|
|
|
`add jar {{package.jar}};`
|
|
|
|
|
2016-05-12 14:14:27 +01:00
|
|
|
- Add .py resource:
|
2016-05-12 13:05:36 +01:00
|
|
|
|
|
|
|
`add py {{script.py}};`
|
2016-05-12 07:11:20 +01:00
|
|
|
|
|
|
|
- Delete resource:
|
|
|
|
|
|
|
|
`drop resource {{resource_name}};`
|