2016-05-11 20:39:56 +08:00
|
|
|
# odps
|
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
> Aliyun ODPS (Open Data Processing Service) command-line tool.
|
2021-09-13 10:21:21 +02:00
|
|
|
> Some subcommands such as `odps inst` have their own usage documentation.
|
2021-06-09 08:12:11 +02:00
|
|
|
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
|
2016-05-11 20:39:56 +08:00
|
|
|
|
2021-05-20 16:13:41 -04: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}});`
|