mirror of https://github.com/CrimsonTome/tldr.git
odps-tunnel: add page
Change-Id: Ic97e03bafdc9761eb18f51f912e4e14da1163f9awaldyrious/alt-syntax
parent
f4e69318b7
commit
a1198f3713
|
@ -0,0 +1,19 @@
|
||||||
|
# odps tunnel
|
||||||
|
|
||||||
|
> Data tunnel in ODPS (Open Data Processing Service).
|
||||||
|
|
||||||
|
- Download table to local file:
|
||||||
|
|
||||||
|
`tunnel download {{table_name}} {{file}};`
|
||||||
|
|
||||||
|
- Upload local file to a table parition:
|
||||||
|
|
||||||
|
`tunnel upload {{file}} {{table_name}}/{{partition_spec};`
|
||||||
|
|
||||||
|
- Upload table with specifying field and record delimiters:
|
||||||
|
|
||||||
|
`tunnel upload {{file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`
|
||||||
|
|
||||||
|
- Upload table using multi-threads:
|
||||||
|
|
||||||
|
`tunnel upload {{file}} {{table_name}} -threads {{num}};`
|
Loading…
Reference in New Issue