当前位置:网站首页>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.
边栏推荐
- 网关状态检测 echo request/reply
- Kubesphere cluster configuration NFS storage solution - favorite
- multiprocessing.pool详解
- TiDB 中的数据库模式概述
- Us camera cloud service scheme: designed for lightweight video production scenes
- 第 299 场周赛 第四题 6103. 从树中删除边的最小分数
- Configuration of vscode korofileheader
- Small program of C language practice (consolidate and deepen the understanding of knowledge points)
- IDEA一键生成Log日志
- MATLAB快速将影像的二维坐标转换为经纬度坐标
猜你喜欢

汇编语言-王爽 第8章 数据处理的两个基本问题-笔记

Active learning

Distribution gaussienne, régression linéaire, régression logistique

Assembly language - Wang Shuang Chapter 11 flag register - Notes

JVM garbage collection mechanism

Gaussian distribution, linear regression, logistic regression

Thinking technology: how to solve the dilemma in work and life?

Using CSDN to develop cloud and build navigation websites

matlab GUI界面仿真直流电机和交流电机转速仿真

JVM overall structure analysis
随机推荐
310. minimum height tree
写一个 goroutine 实例, 同时练习一下 chan
TiDB的事务概览
MATLAB快速将影像的二维坐标转换为经纬度坐标
[QT dot] realize the watchdog function to detect whether the external program is running
yaml文件加密
2018年数学建模竞赛-高温作业专用服装设计
Add widget on qlistwidgetitem
C语言练手小项目(巩固加深知识点理解)
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
【QT小点】QT下载链接
【QT小记】QT元对象系统简单认识
线程间等待与唤醒机制、单例模式、阻塞队列、定时器
Small program of C language practice (consolidate and deepen the understanding of knowledge points)
Matlab quickly converts two-dimensional coordinates of images into longitude and latitude coordinates
TiDB 中的数据库模式概述
[QT dot] QT download link
thrift
Assembly language - Wang Shuang Chapter 11 flag register - Notes
【QT小作】使用结构体数据生成读写配置文件代码