public class MySinkUtil {
public static <T> SinkFunction<T> getClickHouseSink(String db,
String table,
Class<T> tClass) {
String url = "jdbc:clickhouse://hadoop162:8123/" + db;
String driver = "ru.yandex.clickhouse.ClickHouseDriver";
// insert into visitor_stats_2021(c1, c2, c3,...) values(?,?,?...)
StringBuilder sql = new StringBuilder();
sql.append("insert into ").append(table).append("(");
// TODO
final Field[] fields = tClass.
flink jdbc实战
最新推荐文章于 2024-07-16 09:53:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)