Tony
Tony

Reputation: 731

Can you run KSQL from a remote host?

I have confluent-ksql-server running on one of the nodes of my cluster . Can we make the ksql to be connected by a specific host/machine outside the kafka cluster ?

PS- this is to provide ksql access to developers

Thanks !

Upvotes: 2

Views: 991

Answers (1)

Nishu Tayal
Nishu Tayal

Reputation: 20820

Yes, you can. KSQL supports Client-Server architecture. It has ksql server which runs on one machine and client can be independently run on another machine.

enter image description here

When you start the ksql-server on your cluster nodes, you need to configure the listeners in ksql-server.properties. Listeners should be exposed as 0.0.0.0: in order to make it accessible from other machine.

From your local machines, you can access via ksql-cli in following way:

 ./bin/ksql-cli remote http://<kafka Node Listern IP>:8080

You can read more about KSQL Client Server setup here : https://docs.confluent.io/current/ksql/docs/index.html

Upvotes: 5

Related Questions