dataworks数据服务MYSQL_通过DataWorks将MySQL数据同步至Elasticsearch

{

"order": {

"hops": [

{

"from": "Reader",

"to": "Writer"

}

]

},

"setting": {

"errorLimit": {

"record": "10"

},

"speed": {

"concurrent": 1,

"throttle": false

}

},

"steps": [

{

"category": "reader",

"name": "Reader",

"parameter": {

"column": [

"id",

"name",

"sex",

"birth",

"department",

"address"

],

"connection": [

{

"datasource": "zl_test_rdsmysql",

"querysql": [

"SELECT student.id,name,sex,birth,department,address,c_name,grade FROM student JOIN score on student.id=score.stu_id;"

],

"table": [

"score"

]

}

],

"encoding": "UTF-8",

"splitPk": "",

"where": ""

},

"stepType": "mysql"

},

{

"category": "writer",

"name": "Writer",

"parameter": {

"batchSize": 1000,

"cleanup": true,

"column": [

{

"name": "student_id",

"type": "id"

},

{

"name": "sex",

"type": "text"

},

{

"name": "name",

"type": "text"

},

{

"name": "birth",

"type": "integer"

},

{

"name": "quyu",

"type": "text"

},

{

"name": "address",

"type": "text"

},

{

"name": "cname",

"type": "text"

},

{

"name": "grades",

"type": "integer"

}

],

"datasource": "ES_data_source",

"discovery": false,

"index": "mysqljoin",

"indexType": "_doc",

"splitter": ","

},

"stepType": "elasticsearch"

}

],

"type": "job",

"version": "2.0"

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值