2016-05-12 16:43:06 +03:00
|
|
|
# odps tunnel
|
|
|
|
|
|
|
|
> Data tunnel in ODPS (Open Data Processing Service).
|
|
|
|
|
|
|
|
- Download table to local file:
|
|
|
|
|
|
|
|
`tunnel download {{table_name}} {{file}};`
|
|
|
|
|
2016-05-12 16:46:45 +03:00
|
|
|
- Upload local file to a table partition:
|
2016-05-12 16:43:06 +03:00
|
|
|
|
2016-05-14 05:58:43 +03:00
|
|
|
`tunnel upload {{file}} {{table_name}}/{{partition_spec}};`
|
2016-05-12 16:43:06 +03:00
|
|
|
|
2016-05-14 05:58:43 +03:00
|
|
|
- Upload table specifying field and record delimiters:
|
2016-05-12 16:43:06 +03:00
|
|
|
|
|
|
|
`tunnel upload {{file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
|
|
|
|
|
2016-05-14 05:58:43 +03:00
|
|
|
- Upload table using multiple threads:
|
2016-05-12 16:43:06 +03:00
|
|
|
|
|
|
|
`tunnel upload {{file}} {{table_name}} -threads {{num}};`
|