当前位置:网站首页>DataX JSON description
DataX JSON description
2022-06-30 11:01:00 【feifeidata】
{
"job": {
"content": [
{
"reader": {
"name": "mysqlreader",
"parameter": {
"querySql": "", # Customize sql, Support multi table Association , When the user configures querySql when , Direct to ignore table、column、where Configuration of conditions .
"fetchSize": "", # Default 1024, This configuration item defines the number of batch data acquisition for plug-in and database server , This value determines DataX The number of network interactions with the server , It can greatly improve the performance of data extraction , Be careful , The value is too large (>2048) May cause DataX process OOM
"splitPk": "db_id", # Only plastic data segmentation is supported ; If specified splitPk, Indicates that the user wants to use splitPk Represents the field for data fragmentation , If the value is null , It means no segmentation , Using a single channel for extraction
"column": [], #"*" Default all columns , Support column clipping , Column permutation
"connection": [
{
"jdbcUrl": ["jdbc:mysql://IP:3306/database?useUnicode=true&characterEncoding=utf8"],
"table": [] # Multiple tables can be extracted at the same time
}
],
"password": "",
"username": "",
"where": "" # designated column、table、where Conditional mosaicing SQL, You can specify limit 10, You can also do incremental data synchronization , If the value is null , Represents to synchronize all information of the whole table
}
},
"writer": {
"name": "hdfswriter",
"parameter": {
"column": [], # You must specify a field name , Field type ,{"name":"","tpye":""}
"compress": "", #hdfs File compression type , Not filling in by default means that there is no compression . among :text Type files support compression. The types are gzip、bzip2;orc The compression types supported by type files are NONE、SNAPPY( You need to install SnappyCodec).
"defaultFS": "", #Hadoop hdfs file system namenode Node address .
"fieldDelimiter": "", # It needs to be guaranteed and created by users Hive The field separators of the table are consistent
"fileName": "", #HdfsWriter The file name at the time of writing , You need to specify all field names and field types in the table , among :name Specify the field name ,type Specify field type .
"fileType": "", # At present, only user configuration is supported ”text” or ”orc”
"path": "", # Store in Hadoop hdfs File system path information ,hive Table in hdfs Storage path on
"hadoopConfig": {} #hadoopConfig It can be configured with Hadoop Some related advanced parameters , such as HA Configuration of .
"writeMode": "" #append, Do nothing before writing , File name does not conflict ;nonConflict, If there is fileName Prefix file , Direct error .
}
}
}
],
"setting": {
"speed": { # flow control
"byte": 1048576, # Control the transmission speed , Unit is byte/s,DataX Run as fast as you can, but don't exceed it
"channel": "" # Control the number of concurrencies during synchronization
}
"errorLimit": { # Dirty data control
"record": 0 # Threshold of maximum number of records for dirty data (record value ) Or dirty data percentage threshold (percentage value , When quantity or percentage ,DataX Job Report an error and exit
}
}
}
}
边栏推荐
- Deep dive kotlin synergy (18): hot and cold data flow
- LVGL 8.2 Image styling and offset
- [proteus simulation] Arduino uno led simulated traffic light
- 运动App如何实现端侧后台保活,让运动记录更完整?
- [STL source code analysis] container (to be supplemented)
- File sharing server
- ArrayList and sequence table
- Algorithme leetcode 86. Liste des liens séparés
- Pytorch notes torch nn. BatchNorm1d
- MySQL导出sql脚本文件
猜你喜欢
小程序中读取腾讯文档的表格数据
nvm、nrm、npx使用(安装、基本命令、参数、curl、wget)
数学知识复习:第二型曲线积分
The reasoning delay on iphone12 is only 1.6 MS! Snap et al. Analyzed the transformer structure latency in detail, and used NAS to find out the efficient network structure of mobile devices
Voir le changement technologique à travers la Légion Huawei (5): Smart Park
历史上的今天:微软收购 PowerPoint 开发商;SGI 和 MIPS 合并
再测云原生数据库性能:PolarDB依旧最强,TDSQL-C、GaussDB变化不大
Q-Learning笔记
Cp2112 teaching example of using USB to IIC communication
软件测试工程师面试基础题(应届生和测试小菜必备)最基础的面试题
随机推荐
Kernel linked list (general linked list) "list.h" simple version and individual comments
智能DNA分子纳米机器人模型来了
Deep dive kotlin synergy (18): hot and cold data flow
Circuit breaker hystrixcircuitbreaker
Problems and solutions in pyinstall packaging for pychart project
Cp2112 teaching example of using USB to IIC communication
China will force a unified charging interface. If Apple does not bow its head, iPhone will be kicked out of the Chinese market
LVGL 8.2 re-coloring
My in-depth remote office experience | community essay solicitation
CSDN blog operation team 2022 H1 summary
Android 开发面试真题进阶版(附答案解析)
CP2112使用USB转IIC通信教学示例
Double-DQN笔记
pytorch 筆記 torch.nn.BatchNorm1d
SQL必需掌握的100个重要知识点:使用存储过程
DQN笔记
LVGL 8.2 Drop down in four directions
Viewing technological changes through Huawei Corps (V): smart Park
Machine learning interview preparation (I) KNN
Classic interview question: responsible modules, how do you design test cases for these function points? [Hangzhou multi surveyors] [Hangzhou multi surveyors \wang Sir]