From a1198f3713aa792a89669198f573232242d5d367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E4=BA=A6=E8=B6=85=28=E4=BD=95=E5=85=AE=29?= Date: Thu, 12 May 2016 21:43:06 +0800 Subject: [PATCH] odps-tunnel: add page Change-Id: Ic97e03bafdc9761eb18f51f912e4e14da1163f9a --- pages/common/odps-tunnel.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/odps-tunnel.md diff --git a/pages/common/odps-tunnel.md b/pages/common/odps-tunnel.md new file mode 100644 index 000000000..8075cdaae --- /dev/null +++ b/pages/common/odps-tunnel.md @@ -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}};`