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 1/3] 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}};` From 8bfc4decba1c833a5bc85522be806e2076c11530 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:46:45 +0800 Subject: [PATCH 2/3] odps-tunnel: add page Change-Id: Ie91458c5e6302952ef1adc6779ee19a6b4ea3001 --- pages/common/odps-tunnel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/odps-tunnel.md b/pages/common/odps-tunnel.md index 8075cdaae..bc2432d90 100644 --- a/pages/common/odps-tunnel.md +++ b/pages/common/odps-tunnel.md @@ -6,7 +6,7 @@ `tunnel download {{table_name}} {{file}};` -- Upload local file to a table parition: +- Upload local file to a table partition: `tunnel upload {{file}} {{table_name}}/{{partition_spec};` From 2c86fb2c8ec6b9ed157762fa1838682e10135753 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: Sat, 14 May 2016 10:58:43 +0800 Subject: [PATCH 3/3] odps-tunnel: update Change-Id: Id8f584afafc35874f2046f12d1c886bc77f5d105 --- pages/common/odps-tunnel.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/odps-tunnel.md b/pages/common/odps-tunnel.md index bc2432d90..a53537aeb 100644 --- a/pages/common/odps-tunnel.md +++ b/pages/common/odps-tunnel.md @@ -8,12 +8,12 @@ - Upload local file to a table partition: -`tunnel upload {{file}} {{table_name}}/{{partition_spec};` +`tunnel upload {{file}} {{table_name}}/{{partition_spec}};` -- Upload table with specifying field and record delimiters: +- Upload table specifying field and record delimiters: `tunnel upload {{file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}};` -- Upload table using multi-threads: +- Upload table using multiple threads: `tunnel upload {{file}} {{table_name}} -threads {{num}};`