config-old-new.ini 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. [canal]
  2. # MySQL host
  3. host = 210.16.186.252
  4. ; 210.16.186.252
  5. ; root kptzhu@163.com
  6. # MySQL port
  7. port = 3326
  8. # MySQL user, must have replication privilege
  9. user = root
  10. # MySQL password
  11. password = root
  12. # Flavor: mysql or mariadb
  13. flavor = mariadb
  14. # Unique Server ID
  15. serverID = 101
  16. # mysqldump execution path
  17. mysqldump = mysqldump
  18. # dump databases, seperated by comma
  19. dbs = test
  20. # dump tables, seperated by comma, will overwrite dbs templetdry
  21. tables = barfeedremain,barmilk,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  22. # barfeedremain,barmilk,templetdry,downloadedplan,downloadplandtl1,downloadplandtl1_exec,downloadplandtl2,recweight
  23. # database for dump tables, seperated by comma, will overwrite dbs
  24. tableDB = test
  25. # ignore tables, must be database.table format, separated by comma
  26. ignoreTables =
  27. # start sync from binlog name
  28. startName =
  29. # start sync from binlog position of
  30. startPos =
  31. # master heartbeat period(*time.Second)
  32. heartbeatPeriod = 60
  33. # connection read timeout(*time.Second)
  34. readTimeout = 90
  35. # nodename key name intpastureid
  36. nodename =
  37. # nodevalue value
  38. nodevalue =
  39. # showlog
  40. showlog = 0
  41. onetimerows = 500
  42. [kafka]
  43. # enable kafka
  44. kafkaEnable = false
  45. Offset =
  46. kafka_host = www.kptyun.com
  47. kafka_port = 9092
  48. kafka_topic = tmrwatch_uploaddata_
  49. saslEnable = false
  50. username = root
  51. saslpassword = root
  52. tlsEnable = false
  53. clientcert =
  54. clientkey =
  55. cacert =
  56. [mqtt]
  57. # enable kafka
  58. mqttEnable = true
  59. topic = NX-PRD-WiseFarm-KBTTMR-Up
  60. qos = 1
  61. CleanSession = true
  62. # host = 218.241.17.66
  63. # port = 1983
  64. # path =
  65. host = ajtk7v5ybo99i-ats.iot.cn-northwest-1.amazonaws.com.cn
  66. port = 8883
  67. path = /NX-PRD-WiseFarm-KBTTMR-Up
  68. #host = auuhfh5e8d294-ats.iot.us-east-2.amazonaws.com
  69. #port = 8883
  70. #path = /MyIotThing
  71. saslEnable = true
  72. username = kptmqtt
  73. saslpassword = kepaiteng
  74. tlsEnable = false
  75. # clientcert = pem/bbbc7ee0f6-certificate.pem.crt
  76. # clientkey = pem/bbbc7ee0f6-private.pem.key
  77. clientcert = pem/158d083e6c-certificate.pem.crt
  78. clientkey = pem/158d083e6c-private.pem.key
  79. cacert =
  80. old = true
  81. [Service]
  82. ServiceName = KPTCanalService
  83. ServiceDisplayName = KPTCanalService
  84. ServiceDescription = 科湃腾数据同步服务
  85. [barmilk]
  86. ## 字段名称修改
  87. feedpbname = barname
  88. ## 新增字段赋值
  89. pastureid = 1
  90. [downloadedplan]
  91. ## 实际重量
  92. ActualWeight = iweight
  93. pastureid = 1
  94. ## 同步时需要删除的字段
  95. deleteField = TodayID,Minutes,MobileMacNo,ButtonSucc,DriverID,driverdname,beginTime,FWEIGHR,CCountRatioRtime
  96. [downloadplandtl1]
  97. ## 字段名称修改
  98. Dry = dryfeed
  99. ## 新增字段赋值
  100. pastureid = 1
  101. date = now()
  102. ## 同步时需要删除的字段
  103. deleteField = FPointID,NextOpId,LastOpId,UPrice
  104. [downloadplandtl1_exec]
  105. ## 新增字段赋值
  106. pastureid = 1
  107. date = now()
  108. ## 同步时需要删除的字段
  109. deleteField = Fid,NextOpId,LastOpId,Changebyman,feedsort
  110. [downloadplandtl2]
  111. feedpallowratio = allowratio
  112. ## 新增字段赋值
  113. pastureid = 1
  114. date = now()
  115. deleteField = NextOpId,LastOpID,changebyman
  116. [recweight]
  117. pastureid = 1