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

   ### 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
   
   When kafka data is read in real time, incremental data writing fails. 
   After checkpoint is configured, the data written by the last checkpoint is 
overwritten each time
   
   
![Image](https://github.com/user-attachments/assets/f4abbfed-7164-4ac9-8c6e-27d2371b7302)
   
   ### SeaTunnel Version
   
   2.3.6
   
   ### SeaTunnel Config
   
   ```conf
   {
       "env": {
           "parallelism": 1,
           "job.mode": "STREAMING",
           "checkpoint.interval": 10000,
           "job.name": "seatunnel_1722581282427"
       },
       "source": [
           {
               "plugin_name": "kafka",
               "topic": "ods_vehicle_info_up_stress",
               "consumer.group": "kafka_stress_1",
               "bootstrap.servers": "10.188.15.181:9092",
               "format": "json",
               "start_mode": "latest",
               "schema": {
                   "fields": {
                       "acc_long": "double",
                       "device_id": "string",
                       "device_sn": "string",
                       "hea": "double",
                       "spd": "double",
                       "vehicle_speed": "double",
                       "outof_control": "boolean",
                       "vehicle_type": "int",
                       "lane_number": "int",
                       "lon": "double",
                       "abs_activate": "boolean",
                       "endurance": "double",
                       "acc_lat": "double",
                       "vehicle_num": "string",
                       "limit_speed": "int",
                       "acc_vert": "double",
                       "emergency_status": "boolean",
                       "palstance": "double",
                       "drive_status": "int",
                       "acc_yaw": "double",
                       "lat": "double",
                       "region_code": "bigint"
                   }
               },
               "result_table_name": "source_kafka_001"
           }
       ],
       "transform": [
           {
               "plugin_name": "FieldMapper",
               "source_table_name": "source_kafka_001",
               "result_table_name": "source_kafka_002",
               "field_mapper": {
                   "acc_long": "acc_long",
                   "device_id": "device_id",
                   "device_sn": "device_sn",
                   "hea": "hea",
                   "spd": "spd",
                   "vehicle_speed": "vehicle_speed",
                   "outof_control": "outof_control",
                   "vehicle_type": "vehicle_type",
                   "lane_number": "lane_number",
                   "lon": "lon",
                   "abs_activate": "abs_activate",
                   "endurance": "endurance",
                   "acc_lat": "acc_lat",
                   "vehicle_num": "vehicle_num",
                   "limit_speed": "limit_speed",
                   "acc_vert": "acc_vert",
                   "emergency_status": "emergency_status",
                   "palstance": "palstance",
                   "drive_status": "drive_status",
                   "acc_yaw": "acc_yaw",
                   "lat": "lat",
                   "region_code": "region_code"
               }
           },
           {
               "plugin_name": "Sql",
               "source_table_name": "source_kafka_002",
               "result_table_name": "source_kafka_003",
               "query": "select 
device_sn,vehicle_type,vehicle_num,drive_status,emergency_status,abs_activate,outof_control,lon,lat,hea,spd,acc_long,acc_lat,acc_vert,acc_yaw,endurance,vehicle_speed,lane_number,limit_speed,palstance,device_id,region_code,null
 as ele,null as vip_status,null as accelerator_pedal_position,null as 
distance_traveled,null as fuel_level_input,null as maf,null as stft,null as 
ltft,null as dtime,null as rsp_id from source_kafka_002"
           }
       ],
       "sink": [
           {
               "plugin_name": "HdfsFile",
               "fs.defaultFS": "hdfs://nameservice1",
               "path": 
"/user/hive/warehouse/data_pressure_test.db/ods_vehicle_info_up_60",
               "file_format_type": "orc",
               "kerberos_principal": "hdfs/cdh-no...@gohigh.com",
               "kerberos_keytab_path": "/etc/hdfs.keytab",
               "hdfs_site_path": 
"/home/gh-cloud/apache-seatunnel-2.3.5/hive-conf/hdfs-site.xml"
           }
       ]
   }
   ```
   
   ### Running Command
   
   ```shell
   The sync engine uses flink 1.15
   ```
   
   ### Error Exception
   
   ```log
   When kafka data is read in real time, incremental data writing fails. 
   After checkpoint is configured, the data written by the last checkpoint is 
overwritten each time
   ```
   
   ### 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: commits-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to