2016-05-11 20:39:56 +08:00
|
|
|
# odps
|
|
|
|
|
2016-05-12 00:13:29 +08:00
|
|
|
> Aliyun ODPS (Open Data Processing Service) command line tool.
|
2016-05-11 20:39:56 +08:00
|
|
|
|
2016-05-12 00:13:29 +08:00
|
|
|
- Start the command line with a custom configuration file:
|
2016-05-11 20:39:56 +08:00
|
|
|
|
2016-05-12 22:15:16 +08:00
|
|
|
`odpscmd --config={{odps_config.ini}}`
|
2016-05-11 20:39:56 +08:00
|
|
|
|
|
|
|
- Switch current project:
|
|
|
|
|
|
|
|
`use {{project_name}};`
|
|
|
|
|
|
|
|
- Show tables in the current project:
|
|
|
|
|
|
|
|
`show tables;`
|
|
|
|
|
2016-05-12 00:17:52 +08:00
|
|
|
- Describe a table:
|
|
|
|
|
|
|
|
`desc {{table_name}};`
|
|
|
|
|
2016-05-11 20:39:56 +08:00
|
|
|
- Show table partitions:
|
|
|
|
|
|
|
|
`show partitions {{table_name}};`
|
|
|
|
|
2016-05-12 00:17:52 +08:00
|
|
|
- Describe a partition:
|
2016-05-11 20:39:56 +08:00
|
|
|
|
|
|
|
`desc {{table_name}} partition ({{partition_spec}});`
|