当前位置:网站首页>Instance tunnel use
Instance tunnel use
2022-06-27 06:23:00 【The south wind knows what I mean】
Instance Tunnel Use
1. To perform a select Inquire about :
[email protected] odps_test_project>select * from wc_in;
ID = 20170724071705393ge3csfb8
2. Use Instance Tunnel Download Command to download the execution result to a local file
[email protected] odps_test_project> tunnel download -h true -cf true instance://huorong_bigdata/20220329031048178gumx85t32 C:\Users\HR\Desktop\weekReport\ Weekday Wednesday .csv;\
2017-07-24 15:18:47 - new session: 2017072415184785b6516400090ca8 total lines: 8
2017-07-24 15:18:47 - file [0]: [0, 8), result
downloading 8 records into 1 file
2017-07-24 15:18:47 - file [0] start
2017-07-24 15:18:48 - file [0] OK. total: 44 bytes
download OK
// View results
cat result
slkdfj
hellp
apple
tea
peach
apple
tea
teaa
Parameter description
command :
tunnel download instance://<[project_name/]instance_id> <path>
Be careful
odps The following parameters are set by default
instance_tunnel_max_record=10000
The number of download lines is limited to 1w Within the line , Big watch, go odps_config.ini Put it down in the file , There will be no line limit for downloading
Parameter description
Required parameters
path
Download the path and name of the data file .
There are two options for the archive path of data files : You can archive files directly to MaxCompute Client's bin Directory , here path It needs to be set to the file name . Suffix name ; You can also archive files to other paths , for example D Discoid test Folder ,path I need to set to D:\test\ file name . Suffix name .
[project.]table[/partition]
Target table name . If it's a partition table , You need to specify to the last level partition . If it is not a table in the current space , You need to specify the space name where the table is located .
Optional parameters
-acp
If the specified partition does not exist , Automatically create the target partition . The default value is False.
-bs
Specify each upload to Tunnel Data block size . The default value is 100 MiB(1 MiB=1024×1024 Byte).
-c
Specify local data file encoding . Default not set , Download source data .
-cf
Specify whether to be CSV file , The default value is False.
explain Upload Support only TXT、CSV Format file , Default upload TXT file . If upload CSV file , You need to specify the -cf Parameters , Please also download the latest version of MaxCompute client .
-cp
Specify whether to upload data after local compression , Reduce network traffic . The default value is True.
-dbr
Specify whether to ignore dirty data ( Multiple columns 、 Less column 、 The column data types do not match ). The default value is False.
True: Ignore all data that does not conform to the table definition .
False: If you encounter dirty data , Then an error message will be given , The original data in the target table will not be contaminated .
-dfp
Appoint DATETIME Type data format , The default is yyyy-MM-dd HH:mm:ss. If you want to specify the time format to the millisecond level , have access to tunnel upload -dfp 'yyyy-MM-dd HH:mm:ss.SSS'.DATETIME Please refer to data type version description for details of data type .
-fd
Specify column delimiters for local data files . The default value of comma is English (,).
-h
Specifies whether the data file includes a header . The default value is False. If True, be dship The header will be skipped and the data will be uploaded from the second row .
-mbr
Specify the tolerable amount of dirty data . When this amount of data is exceeded , Termination of the upload . The default value is 1000 strip .
-ni
Appoint NULL Data identifier . The default value is an empty string .
-ow
Specifies whether the uploaded data overwrites the table or partition . The default value is False, The uploaded data is accumulated . Examples are as follows .
tunnel upload -overwrite true log.txt test_project.test_table/p1="b1",p2="b2";
-rd
Specify the row delimiter for the local data file . The default value is \r\n.
-s
Specify whether to scan local data files . The default value is True.
True: Scan the data first , If the data format is correct , Reimport data .
False: Do not scan data , Import data directly .
Only: Scan only local data , Do not continue importing data after the scan .
-sd
Appoint Session Catalog .
-ss
Specify strict schema patterns . The default value is True. If False, The extra data will be discarded , Insufficient fields will be filled in NULL.
-t
Appoint Threads The number of . The default value is 1.
-te
Appoint Tunnel Of Endpoint.
-time
Specify whether to track the upload time . The default value is False.
-tz
Designated time zone . The default value is the local time zone , for example Asia/Shanghai.
边栏推荐
- [QT] use structure data to generate read / write configuration file code
- Software testing year end summary report template
- The restart status of the openstack instance will change to the error handling method. The openstack built by the container restarts the compute service method of the computing node and prompts the gi
- Information System Project Manager - Chapter VII project cost management
- Caldera安装及简单使用
- 卷积神经网络---CNN模型的应用(找矿预测)
- JVM的垃圾回收机制
- 427-二叉树(617.合并二叉树、700.二叉搜索树中的搜索、98. 验证二叉搜索树、530.二叉搜索树的最小绝对差)
- multiprocessing.pool详解
- 【养成系】常用正则表达式
猜你喜欢

高斯分布Gaussian distribution、線性回歸、邏輯回歸logistics regression

Quick personal site building guide using WordPress
Software testing year end summary report template

The risk of multithreading -- thread safety

JVM常用指令

免费的 SSH 和 Telnet 客户端PuTTY

汇编语言-王爽 第9章 转移指令的原理-笔记

How to check the frequency of memory and the number of memory slots in CPU-Z?

飞行器翼尖加速度和控制面的MPC控制

美摄云服务方案:专为轻量化视频制作场景打造
随机推荐
《汇编语言-王爽》第3章笔记及实验
Spark's projection
Block level elements & inline elements
Proxy-Reflect使用详解
快速实现蓝牙iBeacn功能详解
What's new in redis4.0 - active memory defragmentation
Kubesphere cluster configuration NFS storage solution - favorite
C Primer Plus Chapter 11_ Strings and string functions_ Codes and exercises
块级元素&行内元素
高斯分布Gaussian distribution、线性回归、逻辑回归logistics regression
[QT notes] simple understanding of QT meta object system
Us camera cloud service scheme: designed for lightweight video production scenes
第 299 场周赛 第四题 6103. 从树中删除边的最小分数
Built in functions of spark
机 器 学 习
JVM的垃圾回收机制
JVM common instructions
Active learning
The restart status of the openstack instance will change to the error handling method. The openstack built by the container restarts the compute service method of the computing node and prompts the gi
软件测试年终总结报告模板