Skip to content

Commit

Permalink
Merge pull request tldr-pages#885 from onesuper/odps-tunnel
Browse files Browse the repository at this point in the history
Odps tunnel
  • Loading branch information
felixonmars committed May 15, 2016
2 parents c18ade3 + 2c86fb2 commit 5bb2719
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/common/odps-tunnel.md
Original file line number Diff line number Diff line change
@@ -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 partition:

`tunnel upload {{file}} {{table_name}}/{{partition_spec}};`

- Upload table specifying field and record delimiters:

`tunnel upload {{file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};`

- Upload table using multiple threads:

`tunnel upload {{file}} {{table_name}} -threads {{num}};`

0 comments on commit 5bb2719

Please sign in to comment.