Closed Toroidals closed 11 months ago
org.apache.seatunnel.connectors.seatunnel.clickhouse.sink.client.ClickhouseSink 中写死只使用nodes中的第一个节点nodes.get(0)
添加代码: // 随机生成一个索引值 Random random = new Random(); ClickHouseNode clickHouseNode = nodes.get(random.nextInt(nodes.size())); 并替换所有的nodes.get(0)
@Toroidals hi, The ClickHouse sink only supports sharding when the table is a distributed table,you can refer to the "split_mode" parameter.
@Toroidals hi, The ClickHouse sink only supports sharding when the table is a distributed table,you can refer to the "split_mode" parameter. When using distributed tables for writing in ClickHouse, it is necessary to rely on ZooKeeper. In earlier versions, when there is a large amount of data, it could lead to ZooKeeper crashes. Is it still possible to encounter the same issue in the current version?
@Toroidals hi, The ClickHouse sink only supports sharding when the table is a distributed table,you can refer to the "split_mode" parameter. When using distributed tables for writing in ClickHouse, it is necessary to rely on ZooKeeper. In earlier versions, when there is a large amount of data, it could lead to ZooKeeper crashes. Is it still possible to encounter the same issue in the current version?
I don't think there will be this problem because essentially Clickhouse Sink will write to the local table rather than directly from a distributed table
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
Search before asking
What happened
Export hive data to clickhouse cluster by seatunnel, and the data is always imported to only one clickhouse node.
SeaTunnel Version
seatunnel: apache-seatunnel-2.3.2 spark: 3.3.1 clickhouse: 22.8.16.32
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
Code of Conduct