| Pinot Version | 0.10.0 |
|---|---|
| Code | startreedata/pinot-recipes/kafka-sasl |
Prerequisites
To follow the code examples in this guide, you must install Docker locally and 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 and Kafka Clusters
You can spin up Pinot and Kafka clusters by running the following command:adminwith the passwordadmin-secretalicewith the passwordalice-secret
Pinot Schema and Table
Let’s create a Pinot Schema and Table. The schema is defined below:sasl.jaas.config property.
If our Kafka cluster has SSL enabled, we would need to specify
security_protocol as SASL_SSL instead of SASL_PLAINTEXT. For an example of using SSL and SASL, see Connecting to Kafka with SSL and SASL authenticationIngesting Data
Next, we’re going to ingest some data into Kafka:Querying
Now let’s navigate to localhost:9000/#/query and copy/paste the following query:| count(*) | sum(count) |
|---|---|
| 64209 | 31917036 |

