Batch Import using Local File

Before running any Pinot commands, make sure to set Java 11 on the CLI and export other required configurations.

Bash
Copy

Create different tables and schemas.

Prepare your Data

Create a directory to store raw data:

Bash
Copy

Create a sample CSV file:

Bash
Copy

Make sure that the table and schema names are the same.

Create Schema

Define a schema in the JSON format:

Bash
Copy

Create Table Configuration

Define the table configuration in the JSON format:

Bash
Copy

Upload Schema and Table Configuration

Use the Pinot Controller REST API to upload them:

Upload Schema:

Bash
Copy

Upload the Table Configuration:

Bash
Copy

Verify if the table and schema were uploaded:

Bash
Copy

Create a Segment Job Spec (YAML)

Bash
Copy

Generate Segments using Batch Job Spec

Bash
Copy

Ingest Data into Pinot

Run the following command to ingest data into Pinot.

Bash
Copy
Bash
Copy

Verify Data Ingestion

Run a query using Pinot’s Query Console:

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