Pinot Version | 0.10.0 |
---|---|
Code | startreedata/pinot-recipes/kafka-ssl-sasl |
Prerequisites
To follow the code examples in this guide, do the following:- Install Docker locally.
- Ensure you have a Kafka cluster with SSL enabled. Confluent Cloud offers a hosted Kafka service with free credits to get started.
- Download recipes
Navigate to recipe
- If you haven’t already, download recipes.
- In terminal, go to the recipe by running the following command:
Launch Pinot Cluster
You can spin up Pinot cluster by running the following command:Pinot Schema and Table
Let’s create a Pinot Schema and Table. The schema is defined below:<bootstrap-servers>
with the host and port of your Kafka cluster.
The credentials that we want to use are specified in the sasl.jaas.config
property.
You’ll need to replace <cluster-api-key>
and <cluster-api-secret>
with your own credentials.
If our Kafka cluster does not have SSL enabled, we would need to specify
security_protocol
as SASL_PLAINTEXT
instead of SASL_SSL
. For an example of using SASL without SSL, see Connecting to Kafka with SASL authenticationIngesting Data
Ingest a few messages into your Kafka cluster:Querying
Now let’s navigate to localhost:9000/#/query and copy/paste the following query:count(*) | sum(count) |
---|---|
3 | 965 |