Coder Social home page Coder Social logo

Comments (5)

itinycheng avatar itinycheng commented on August 20, 2024

例如: clickhouse://host1:8123,host2:8123,host3:8123

您好,支持:
具体实现使用的是clickhouse-jdbc中的BalancedClickhouseDataSource

from flink-connector-clickhouse.

kxbin avatar kxbin commented on August 20, 2024

@itinycheng 多谢,我测试一下看看

from flink-connector-clickhouse.

kxbin avatar kxbin commented on August 20, 2024

您好,我在flink sql中测试集群模式的url,结果失败了

输入的url是

CREATE TABLE (
   略
) WITH  (
  'connector' = 'clickhouse',
  'url' = 'clickhouse://192.168.0.1:30004,192.168.0.2:30004,192.168.0.3:30004',
  其他参数略
)

调试得到的url是clickhouse://null

INFO  org.apache.flink.connector.clickhouse.internal.connection.ClickHouseConnectionProvider [] - connecting to clickhouse://null, database gaofang

我猜测是org.apache.flink.configuration.ReadableConfig读取url的时候,如果遇到逗号分隔会存在异常。

明天我在调试一下,如果有结果的话,我提交一个PR修复一下

如果您能给出一些指导,那就更好不过啦 :)

另外搜索到两个相关问题的链接:

ClickHouse/clickhouse-java#678

https://issues.apache.org/jira/browse/FLINK-17294

from flink-connector-clickhouse.

kxbin avatar kxbin commented on August 20, 2024

是因为我有一个自定义的Properties文件弄错了,所以读取到的为null。 😂

flink sql 1.15.1,测试集群模式url是没问题的。

from flink-connector-clickhouse.

itinycheng avatar itinycheng commented on August 20, 2024

是因为我有一个自定义的Properties文件弄错了,所以读取到的为null。 😂

flink sql 1.15.1,测试集群模式url是没问题的。

@kxbin

好的,有遇到问题,欢迎PR 🤝;

from flink-connector-clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.