mirror of https://github.com/CrimsonTome/tldr.git
odps-resource: add page
Change-Id: I69552328ad7dbfb8117146bd6cb1cff088f1c5a1waldyrious/alt-syntax
parent
653f2eb376
commit
d85b054fe5
|
@ -0,0 +1,26 @@
|
||||||
|
# odps resource
|
||||||
|
|
||||||
|
> Manage resources in odps.
|
||||||
|
|
||||||
|
- Show resources in the current project:
|
||||||
|
|
||||||
|
`list resources;`
|
||||||
|
|
||||||
|
- Add local file as odps resource (overwrite if it already exists):
|
||||||
|
|
||||||
|
`add file {{file}} as {{alias}} -f;`
|
||||||
|
`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 table {{table_name}} partition ({{partition_spec}}) as {{as alias}} -f;`
|
||||||
|
|
||||||
|
- Download odps resource to local file:
|
||||||
|
|
||||||
|
`get resource {{project_name}}:{{resource_name}} {{file}};`
|
||||||
|
|
||||||
|
- Delete resource:
|
||||||
|
|
||||||
|
`drop resource {{resource_name}};`
|
Loading…
Reference in New Issue