我们在ibm Cloud中使用IBM函数和event-streams创建了一个项目。
现在,我正在尝试将KSQL与IBM cloud Event Stream连接起来,并沿着Document学习集成的基本概念。
按照说明,我创建了一个名为ksql-server.properties的文件,并根据我的凭据修改了bootstrap.servers、username、password。然后我用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'`此外,当步骤4告诉我:‘然后按如下方式启动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.`有没有人以前这样做过,或者愿意帮助我?非常感谢!
发布于 2019-02-20 16:37:46
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。
https://stackoverflow.com/questions/54775699
复制相似问题