开发者社区> 问答> 正文

cana-kafak1.1.0版本,搭建kafka消费客户端,怎么对ROWDATA类型的storeV

2018-10-31 15:49:04.318 [Thread-1] INFO c.a.o.canal.client.running.kafka.CanalKafkaClientExample - Message[id=12,entries=[header { version: 1 logfileName: "mysql-bin.000002" logfileOffset: 1206761 serverId: 1 serverenCode: "UTF-8" executeTime: 1540972144000 sourceType: MYSQL schemaName: "" tableName: "" eventLength: 79 } entryType: TRANSACTIONBEGIN storeValue: " _" , header { version: 1 logfileName: "mysql-bin.000002" logfileOffset: 1206909 serverId: 1 serverenCode: "UTF-8" executeTime: 1540972144000 sourceType: MYSQL schemaName: "smart_meter" tableName: "sys_region_new" eventLength: 46 eventType: INSERT props { key: "rowsCount" value: "1" } } entryType: ROWDATA storeValue: "\b\212\001\020\001P\000b\217\001\022\036\b\000\020\004\032\002id \001(\0010\000B\00530026R\aint(11)\022\037\b\001\020\f\032\004name \000(\0010\000B\000R\vvarchar(20)\022!\b\002\020\004\032\tparent_id \000(\0010\000B\0012R\aint(11)\022)\b\003\020\371\377\377\377\377\377\377\377\377\001\032\005level \000(\0010\000B\0011R\ntinyint(1)" , header { version: 1 logfileName: "mysql-bin.000002" logfileOffset: 1206955 serverId: 1 serverenCode: "UTF-8" executeTime: 1540972144000 sourceType: MYSQL schemaName: "" tableName: "" eventLength: 31 } entryType: TRANSACTIONEND storeValue: "\022\0049961" ],raw=true,rawEntries=[]]

想知道storeValue怎么解析?

原提问者GitHub用户redoorzhou

展开
收起
Java工程师 2023-05-08 17:56:08 110 0
1 条回答
写回答
取消 提交回答
  • 可以参考: MessageUtil.parse4Dml

    原回答者GitHub用户rewerma

    2023-05-09 18:49:27
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第16讲】:Spring Boot 2.0 实战Apache Kafka百万级高并发消息中间件与原理解析 立即下载
MaxCompute技术公开课第四季 之 如何将Kafka数据同步至MaxCompute 立即下载
消息队列kafka介绍 立即下载