1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-17 19:15:50 +02:00
tldr/pages/common/odps-tunnel.md

22 lines
618 B
Markdown
Raw Normal View History

# odps tunnel
> Data tunnel in ODPS (Open Data Processing Service).
2025-07-30 07:32:48 +03:00
> See also: `odps`.
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
- Download table to local file:
2022-12-04 10:12:49 +01:00
`tunnel download {{table_name}} {{path/to/file}};`
- Upload local file to a table partition:
2022-12-04 10:12:49 +01:00
`tunnel upload {{path/to/file}} {{table_name}}/{{partition_spec}};`
- Upload table specifying field and record delimiters:
2022-12-04 10:12:49 +01:00
`tunnel upload {{path/to/file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
- Upload table using multiple threads:
2022-12-04 10:12:49 +01:00
`tunnel upload {{path/to/file}} {{table_name}} -threads {{num}};`