1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/odps-tunnel.md

22 lines
617 B
Markdown
Raw Normal View History

# odps tunnel
> Data tunnel in ODPS (Open Data Processing Service).
> 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}};`