Superset Pinot testing - Stream Data

Make sure you have Kafka (used kafka3 here), Pinot (1.4.0), and Superset running.

Bash
Copy

Set up Kafka

Client.properties for krb auth

Bash
Copy

Create a Topic

Bash
Copy

Producer Script to Ingest Data

Bash
Copy

Set up Pinot Injestion

Create Pinot Realtime Table

Create Schema

Bash
Copy

Create Table Config

Bash
Copy
  • Now give permissions for Pinot to read Kafka (for that topic or in general, all topics) and add Pinot Jaas to the Pinot process so that Pinot can pass through the Kerberos authentication.
Bash
Copy

Add this to Pinot JVM args,

Bash
Copy

like the following, for all components of Pinot.

If you see failures related to auth, you can try adding -Dsun.security.krb5.debug=true to above and see some logs.

[Kafka topic is still active, and messages are being pushed and consumed by Pinot Live]

And once that's done, as we have already connected Pinot to Kafka from previous testing, we should see a new table in Superset.

Create Charts

Bar Chart - Live Flights by Carrier

Bash
Copy

Line Chart - Arrival Delays Over Time

Bash
Copy

Big Number - Total Events

Bash
Copy

Dashboard

  • Refresh (on 3dot menu, top right)
  • Autorefresh

Video live refresh for the Dashboard

The following is a quick video showing autorefresh.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated