Mark Needham shows how to ingest JSON files
If you have complex JSON documents with a nested structure, see how to ingest complex JSON documents with a nested structure from Kafka into Pinot.
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 Cluster
You can spin up a Pinot Cluster by running the following command:Dataset
We’re going to import the following JSON files:Pinot Schema and Table
Now let’s create a Pinot Schema and Table. First, the schema:smallest means it will start from the earliest offset.
A value of largest means it will start from the latest offset.
You can create the table and schema by running the following command:`
Importing data
Now we’re going to import the JSON files into Kafka:Querying
Once that’s completed, navigate to localhost:9000/#/query and click on themovies table or copy/paste the following query:
Query Results

