2016-05-12 14:43:06 +01:00
|
|
|
# odps tunnel
|
|
|
|
|
|
|
|
> Data tunnel in ODPS (Open Data Processing Service).
|
2021-06-09 07:12:11 +01:00
|
|
|
> See also `odps`.
|
|
|
|
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
|
2016-05-12 14:43:06 +01:00
|
|
|
|
|
|
|
- Download table to local file:
|
|
|
|
|
|
|
|
`tunnel download {{table_name}} {{file}};`
|
|
|
|
|
2016-05-12 14:46:45 +01:00
|
|
|
- Upload local file to a table partition:
|
2016-05-12 14:43:06 +01:00
|
|
|
|
2016-05-14 03:58:43 +01:00
|
|
|
`tunnel upload {{file}} {{table_name}}/{{partition_spec}};`
|
2016-05-12 14:43:06 +01:00
|
|
|
|
2016-05-14 03:58:43 +01:00
|
|
|
- Upload table specifying field and record delimiters:
|
2016-05-12 14:43:06 +01:00
|
|
|
|
|
|
|
`tunnel upload {{file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
|
|
|
|
|
2016-05-14 03:58:43 +01:00
|
|
|
- Upload table using multiple threads:
|
2016-05-12 14:43:06 +01:00
|
|
|
|
|
|
|
`tunnel upload {{file}} {{table_name}} -threads {{num}};`
|