odps-resource: update

Change-Id: I977753abf297066d3f3f5ef6277775c0114d8030
This commit is contained in:
程亦超(何兮)
2016-05-12 20:05:36 +08:00
parent d85b054fe5
commit 4f24a92912

View File

@@ -1,25 +1,26 @@
# odps resource # odps resource
> Manage resources in odps. > Manage resources in ODPS (Open Data Processing Service).
- Show resources in the current project: - Show resources in the current project:
`list resources;` `list resources;`
- Add local file as odps resource (overwrite if it already exists): - Add file or archive:
`add file {{file}} as {{alias}} -f;` `add file {{file_name}} as {{alias}};`
`add archive {{file}} as {{alias}} -f;`
`add jar {{file.jar}} -f;`
`add py {{file.py}} -f;`
- Add odps table as odps resource (overwrite if it already exists): - Add archive:
`add table {{table_name}} partition ({{partition_spec}}) as {{as alias}} -f;` `add archive {{archive.tar.gz}} as {{alias}}`
- Download odps resource to local file: - Add Jar package:
`get resource {{project_name}}:{{resource_name}} {{file}};` `add jar {{package.jar}};`
- Add Python script:
`add py {{script.py}};`
- Delete resource: - Delete resource: