Files
cheatsheet-tldr/tldr/odpscmd-tunnel
2025-12-23 00:21:40 +00:00

27 lines
795 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# odpscmd tunnel
> Data tunnel in ODPS (Open Data Processing Service).
> See also: `odpscmd`.
> More information: <https://www.alibabacloud.com/help/en/maxcompute/user-guide/maxcompute-client>.
- [Interactive] Download table to local file:
`tunnel download {{table_name}} {{path/to/file}};`
- [Interactive] Upload local file to a table partition:
`tunnel upload {{path/to/file}} {{table_name}}/{{partition_spec}};`
- [Interactive] Upload table specifying field and record delimiters:
`tunnel upload {{path/to/file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
- [Interactive] Upload table using multiple threads:
`tunnel upload {{path/to/file}} {{table_name}} -threads {{num}};`