当前位置:网站首页>Instance tunnel use
Instance tunnel use
2022-07-25 15:15: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.
边栏推荐
- 如何解决Visual Stuido2019 30天体验期过后的登陆问题
- NPM's nexus private server e401 E500 error handling record
- Universal smart JS form verification
- ESXI6.7.0 升级到7.0U3f(2022年7月12 更新)
- Overview of JS synchronous, asynchronous, macro task and micro task
- Docker上运行redis以配置文件方式启动,连接客户端报错Error: Server closed the connection
- Handle Oracle deadlock
- 海缆探测仪TSS350(一)
- Iframe nested other website page full screen settings
- CMake指定OpenCV版本
猜你喜欢

String type time comparison method with error string.compareto

pl/sql 创建并执行oralce存储过程,并返回结果集

Share a department design method that avoids recursion

"Ask every day" briefly talk about JMM / talk about your understanding of JMM

Run redis on docker to start in the form of configuration file, and the connection client reports an error: server closed the connection

Pl/sql creates and executes ORALCE stored procedures and returns the result set

基于OpenCV和YOLOv3的目标检测实例应用

反射-笔记

Raft of distributed consistency protocol

Process control (Part 1)
随机推荐
记一次Spark foreachPartition导致OOM
继承的实现过程及ES5和ES6实现的区别
Tasks, micro tasks, queues and scheduling (animation shows each step of the call)
MFC 线程AfxBeginThread基本用法,传多个参数
spark中saveAsTextFile如何最终生成一个文件
Automatically set the template for VS2010 and add header comments
海缆探测仪TSS350(一)
VMware Workstation fails to start VMware authorization service when opening virtual machine
Promise对象与宏任务、微任务
Vscode plugin collection
Pl/sql creates and executes ORALCE stored procedures and returns the result set
MySql的安装配置超详细教程与简单的建库建表方法
Example of password strength verification
基于OpenCV和YOLOv3的目标检测实例应用
How much memory can a program use at most?
bridge-nf-call-ip6tables is an unknown key异常处理
从 join on 和 where 执行顺序认识T-sql查询执行顺序
Run redis on docker to start in the form of configuration file, and the connection client reports an error: server closed the connection
Scala111-map、flatten、flatMap
Rediscluster setup and capacity expansion