Kaynağa Gözat

Merge pull request #885 from onesuper/odps-tunnel

Odps tunnel
Felix Yan 8 yıl önce
ebeveyn
işleme
5bb2719231
1 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 19 0
      pages/common/odps-tunnel.md

+ 19 - 0
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 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}};`