seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

Kafka source and starrocks sink data not exactly once

Open lazybird23 opened this issue 3 years ago • 4 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

kafka source consumer only one data ,but starrocks is written multiple times。

SeaTunnel Version

2.3.2

SeaTunnel Config

env {
  execution.parallelism = 1
  job.mode = "STREAMING"
  checkpoint.interval = 5000
}

source {
  Kafka {
    bootstrap.servers = "bd-test-master0001:9092,bd-test-master0002:9092,bd-test-master0003:9092"
    consumer.group = "jt_test_seatunnel"
    topic = "dwd-rt-kfk-sys-service-log-detail-test02"
    result_table_name = test
    #format = json # default
    #format_error_handle_way = skip
    schema = {
      fields {
        recruit_date = "date"
        region_num = "int"
        num_plate = "int"
        tel = "int"
        id = "int"
        password = "string"
        name = "string"
        profile = "string"
        ispass = "int"
      }
    }
    #field_delimiter = "," #default
    kafka.config = {
      client.id = client_1
      #max.poll.records=100 需要引号
      max.poll.records = "10000"
      auto.offset.reset = "earliest"
      enable.auto.commit = "true"
    }
  }
}

sink {
  StarRocks {
    nodeUrls = ["bd-test-master0001:18030","bd-test-master0002:18030","bd-test-master0003:18030"]
    base-url = "jdbc:mysql://bd-test-master0003:19030/"
    username = root
    password = "password"
    database = "cloud_db"
    table = "detail_demo_hdfs"
    batch_max_rows = 10000
    # starrocks.config = {
    #   format = "CSV"
    #   column_separator = "\\x01"
    #   row_delimiter = "\\x02"
    # }
  }
}

Running Command

seatunnel.sh cluster mode

Error Exception

no error

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

lazybird23 avatar Aug 10 '23 08:08 lazybird23

The current status quo starrocks does not support exactly once @lazybird23

Carl-Zhou-CN avatar Aug 11 '23 03:08 Carl-Zhou-CN

The current status quo starrocks does not support exactly once @lazybird23

your means seatunnel starrock-sink or starrocks?

lazybird23 avatar Aug 11 '23 05:08 lazybird23

starrock-sink

Carl-Zhou-CN avatar Aug 11 '23 05:08 Carl-Zhou-CN

thanks reply with best regards

lazybird23 avatar Aug 11 '23 05:08 lazybird23