如何将Ksql与ibm-cloud事件流连接?

时间:2019-02-19 22:09:17

标签: ibm-cloud ksql

我们在IBM Cloud中创建了一个具有ibm功能和事件流的项目。

现在,我正在尝试将KSQL与IBM Cloud Event Stream连接起来,并且我遵循Document来获取集成的基本思想。

按照说明,我创建了一个名为ksql-server.properties的文件,并根据我的凭据修改了bootstrap.serversusernamepassword。然后,我使用ksql local cli运行ksql http://localhost:8088 --config-file ksql-server.properties。我认为到目前为止,ksql>都显示在每行的开头,因此一切运行正常……

然后我决定通过运行SHOW topics;

检查ksql是否与我的ibm云连接了

列出一些错误行:

    `Error issuing POST to KSQL server. path:ksql'`
    `Caused by: com.fasterxml.jackson.databind.JsonMappingException: Failed to set 'ssl.protocol' to 'TLSv1.2' (through reference chain: io.confluent.ksql.rest.entity.KsqlRequest["streamsProperties"])`
    `Caused by: Failed to set 'ssl.protocol' to 'TLSv1.2' (through reference chain: io.confluent.ksql.rest.entity.KsqlRequest["streamsProperties"])
    `
    `Caused by: Failed to set 'ssl.protocol' to 'TLSv1.2'`
    `Caused by: Cannot override property 'ssl.protocol'`

此外,当我告诉我:         `然后按如下所示两次启动DataGen:

    i. With bootstrap-server=HOSTNAME:PORTNUMBER quickstart=users format=json topic=users maxInterval=10000 to start creating users events.

    ii. With bootstrap-server=HOSTNAME:PORTNUMBER quickstart=pageviews format=delimited topic=pageviews maxInterval=10000 to start creating pageviews events.`

有人在此之前做过,还是想帮助我?非常感谢!!!

1 个答案:

答案 0 :(得分:0)

IBM文档非常过时。 KSQL作为客户端/服务器运行。该服务器需要使用代理的详细信息运行,然后您可以使用客户端连接到该服务器,包括CLI,REST API或Confluent Control Center提供的Web界面。

因此,您需要使用属性文件来运行KSQL服务器:

./bin/ksql-server-start ksql-server.properties

,然后使用CLI连接(例如):

./bin/ksql http://localhost:8088

有关更多信息,请参见https://docs.confluent.io/current/ksql/docs/installation/installing.html