当前位置:网站首页>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
}
}
}
}
边栏推荐
猜你喜欢

20万奖金池!【阿里安全 × ICDM 2022】大规模电商图上的风险商品检测赛火热报名中!...

19:00 p.m. tonight, knowledge empowerment phase 2 live broadcast - control panel interface design of openharmony smart home project

The first China Digital Collection conference will be held soon

sCrypt 中的 ECDSA 签名验证

CSDN blog operation team 2022 H1 summary

Retest the cloud native database performance: polardb is still the strongest, while tdsql-c and gaussdb have little change

The two e-commerce bigwigs' lacy news screens represent the return of e-commerce to normal, which will be beneficial to the real economy

Voir le changement technologique à travers la Légion Huawei (5): Smart Park

小程序中读取腾讯文档的表格数据

LVGL 8.2 Image
随机推荐
文件共享服务器
LeetCode Algorithm 86. 分隔链表
LVGL 8.2 Drop down in four directions
SQL必需掌握的100个重要知识点:使用视图
CSDN blog operation team 2022 H1 summary
JS FAQs
Iptables target tproxy
Pandora IOT development board learning (HAL Library) - Experiment 1 running lantern (RGB) experiment (learning notes)
scratch绘制正方形 电子学会图形化编程scratch等级考试二级真题和答案解析2022年6月
LVGL 8.2 Simple Colorwheel
再测云原生数据库性能:PolarDB依旧最强,TDSQL-C、GaussDB变化不大
The intelligent DNA molecular nano robot model is coming
Q-Learning笔记
苹果高管公然“开怼”:三星抄袭 iPhone,只加了个大屏
MySQL导出sql脚本文件
SQL必需掌握的100个重要知识点:创建和操纵表
LeetCode Algorithm 86. 分隔鏈錶
[机缘参悟-34]:光锥之内皆命运
List introduction
SQL必需掌握的100个重要知识点:更新和删除数据