UFOXD opened a new issue, #6955:
URL: https://github.com/apache/seatunnel/issues/6955

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   canal_json格式应该是这样: {"data":[{"order_id":10001,"order_date":"2020-07-30 
10:08:22","customer_name":"Jark","price":50.5,"product_id":102,"order_status":false}],"type":"INSERT"}
   
   
   实际输出的却是:
   {"data":{"order_id":10001,"order_date":"2020-07-30 
10:08:22","customer_name":"Jark","price":50.5,"product_id":102,"order_status":false},"type":"INSERT"}
   
   导致下游flink kafka 无法解析
   
   ### SeaTunnel Version
   
   v2.3.5
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 10000
   }
   
   source {
     MySQL-CDC {
       base-url = "jdbc:mysql://10.13.8888.102:3306/test"
       username = "root"
       password = "xxxxxxxxxxxx"
       table-names = ["test.runoob_tbl"]
       startup.mode = "initial"
     }
   }
   
   
   sink {
       Kafka {
         topic = "test"
         bootstrap.servers = 
"10.13.8888.213:9092,10.13.8888.171:9092,10.13.8888.157:9092"
         format = "canal_json"
         kafka.request.timeout.ms = 60000
         kafka.config = {
           acks = "all"
           request.timeout.ms = 60000
           buffer.memory = 33554432
         }
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config ./config/v2.mysql2kafka_streaming.conf -e local
   ```
   
   
   ### Error Exception
   
   ```log
   xx
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to