Some use cases / demonstrations¶
Pinot integration with RedPanda for flight records¶
Inject flights data to RedPanda then to Pinot. See this article.
- Start redpanda and Pinot
The pinot-ex folder is mounted inside the docker container of redpanda and pinot controller.
-
flights-schema.json to define the flights table in Pinot
-
Get the flights data
curl -X GET https://raw.githubusercontent.com/systemcraftsman/redpanda-apache-pinot-demo/main/resources/data/flights-data.json > flights-data.json
- Create topic in redpanda:
- Create table in Pino
docker exec -ti pinot-controller bash
./bin/pinot-admin.sh AddTable -schemaFile /tmp/panda_airlines/flights-schema.json -tableConfigFile /tmp/panda_airlines/flights-table-realtime.json -exec
- Produce message to the
flights
topic
- Connect to the pinot web console
- Execute the following query in the
Query Console
to verify the connection to Kafka has worked and the table in Pinot is loaded with records fromflights
topic:
- Then execute the following SQL to address the analyst's request: Find the number of flights that occurred in January 2014 that have air time of more than 300 minutes and that are from any airport in the state of California to JFK airport.