HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

odpscmd tunnel — Data tunnel in ODPS (Open Data Processing Service). See also: `odpscmd`. More information: <https://

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandtunnelcliopendataodpscmd tunnelodps

Problem

How to use the odpscmd tunnel command: Data tunnel in ODPS (Open Data Processing Service). See also: odpscmd. More information: <https://www.alibabacloud.com/help/en/maxcompute/user-guide/maxcompute-client>.

Solution

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}};

Code Snippets

[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}};

Context

tldr-pages: common/odpscmd tunnel

Revisions (0)

No revisions yet.