NIFI incrementally synchronizes data from MySql_Through Mysql's binlog function_Real-time synchronization of Mysql data_Configure data routing_Generate and insert Sql statements_Practical operation 02---Nifi work notes of big data 0041

Then we drag a RouteOnAttribute processor, and through this processor, we put CaptureChangeMySql

The binlog data obtained by the processor is classified and routed to different processors, such as insert, we will take the insert branch, and update will take the update branch

You can see that we have configured, 3 insert, update, delete, here

${cdc.event.type:equals('insert')}

This is the attribute obtained from the flowfile, and then

as a routing sentence

Then we add an evaluateJsonPath processor to extract

The data in the json string is actually the data of the string extracted from the binlog, right?

Then we add a logattribute processor

Guess you like

Origin blog.csdn.net/lidew521/article/details/130514515