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 09:12:49 +00:00
`tunnel download {{table_name}} {{path/to/file}};`
- Upload local file to a table partition:
2022-12-04 09:12:49 +00:00
`tunnel upload {{path/to/file}} {{table_name}}/{{partition_spec}};`
- Upload table specifying field and record delimiters:
2022-12-04 09:12:49 +00:00
`tunnel upload {{path/to/file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
- Upload table using multiple threads:
2022-12-04 09:12:49 +00:00
`tunnel upload {{path/to/file}} {{table_name}} -threads {{num}};`