mirror of https://github.com/CrimsonTome/tldr.git
odps: reduce num of showcases
Change-Id: I677a417cf14170ed9f33781d376e004a6c5ca133waldyrious/alt-syntax
parent
4c21b73d81
commit
8cd264e4f2
|
@ -1,8 +1,8 @@
|
||||||
# odps
|
# odps
|
||||||
|
|
||||||
> Aliyun ODPS command line tool.
|
> Aliyun ODPS (Open Data Processing Service) command line tool.
|
||||||
|
|
||||||
- Start the command line:
|
- Start the command line with a custom configuration file:
|
||||||
|
|
||||||
`odpscmd --config {{odps_config.ini}}`
|
`odpscmd --config {{odps_config.ini}}`
|
||||||
|
|
||||||
|
@ -18,22 +18,10 @@
|
||||||
|
|
||||||
`show partitions {{table_name}};`
|
`show partitions {{table_name}};`
|
||||||
|
|
||||||
- Describe table/partition:
|
- Describe table partition:
|
||||||
|
|
||||||
`desc {{table_name}} partition ({{partition_spec}});`
|
`desc {{table_name}} partition ({{partition_spec}});`
|
||||||
|
|
||||||
- Create a partitiond table with lifecycle:
|
- Create a partitiond table with lifecycle:
|
||||||
|
|
||||||
`create table {{name}} ({{col}} {{type}}) partitioned by ({{col}} {{type}}) lifecycle {{days}};`
|
`create table {{name}} ({{col}} {{type}}) partitioned by ({{col}} {{type}}) lifecycle {{days}};`
|
||||||
|
|
||||||
- Read the content of table:
|
|
||||||
|
|
||||||
`read {{table_name}} partition ({{partition_spec}}) {{limit}};`
|
|
||||||
|
|
||||||
- Download the table:
|
|
||||||
|
|
||||||
`tunnel download {{table_name}}/{{partition_spec}} {{file}};`
|
|
||||||
|
|
||||||
- Upload the table:
|
|
||||||
|
|
||||||
`tunnel upload {{file}} {{table_name}}/{{partition_spec}};`
|
|
||||||
|
|
Loading…
Reference in New Issue