beta-zhou commented on issue #11965:
URL: https://github.com/apache/seatunnel/issues/11965#issuecomment-5436256346

   版本:apache-seatunnel-2.3.12
   
   
   
   env{
     execution.parallelism = 1
     job.mode = "STREAMING"
     job.name = "bike.bike_info"
     checkpoint.interval =1000
   }
   
   source {
     Oracle-CDC {
         plugin_output = "tables14"
         username = "logminer_user"
         password = "pwd$123"
         database-names = ["SJZTNCDB"]
         schema-names = ["TESTDBO"]
         table-names = ["SJZTNCDB.TESTDBO.bike_info"]
         connect.timeout.ms = 120000
         connect.max-retries = 30
         base-url = "jdbc:oracle:thin:@192.168.56.10:1522:SJZTNCDB"
       }
   }
   
   transform {
     Sql {
       plugin_input = "tables14"
       query = "select *,NOW() as SEATUNNEL_UPDATE_TIME from tables14"
       plugin_output = "tables14_tf"
     }
   }
   
   sink {
     Doris {
         plugin_input = "tables14_tf"
         fenodes = "192.168.56.20:8030"
         username = root
         password = "pwd$123"
         database = "bike"
         sink.enable-2pc = "false"
         sink.label-prefix = "bike_14_TABLE1"
         sink.enable-delete = "true"
         doris.config = {
               format="json"
               read_json_by_line="true"
           }
         #save_mode_create_template = """CREATE TABLE IF NOT EXISTS 
`${database}`.`${table_name}` (${rowtype_fields}) ENGINE = OLAP UNIQUE KEY 
(${rowtype_primary_key}) DISTRIBUTED BY HASH (${rowtype_primary_key}) BUCKETS 
10 PROPERTIES ("replication_num" = "3");"""
       }
   }


-- 
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