Pinot provides a rich CLI to perform almost every operation on the cluster. You can execute all the commands using the pinot-admin.sh
. The script is located in the bin/
directory of the Pinot binary distribution or /opt/pinot/bin
in docker container.
The following commands are supported by the admin script.
Upload the schema configuration to controller. If their is already a schema with same name, it will be updated.
All the options should be prefixed with -
(hyphen)
Upload the table configuration to controller.
All the options should be prefixed with -
(hyphen)
Add a new tenant to the server
All the options should be prefixed with -
(hyphen)
Lists all the segments which have invalid time interval. Only OFFLINE
segments are supported.
All the options should be prefixed with -
(hyphen)
This command changes the replicas of the table. The number of replicas are set from the latest available table config.
All the options should be prefixed with -
(hyphen)
Enable, Disable or Drop the table available in database.
All the options should be prefixed with -
(hyphen)
Create segment files from the input file in local filesystem.
All the options should be prefixed with -
(hyphen)
Convert the segment file from Pinot specific format to other data formats. Currently only CSV
, AVRO
and JSON
are supported.
All the options should be prefixed with -
(hyphen)
Delete the cluster namespace from zookeeper.
All the options should be prefixed with -
(hyphen)
Run job to consume batch or streaming data and push it to Pinot.
All the options should be prefixed with -
(hyphen)
Perform operations similar to the Minion Merge Rollup Task, where multiple segments can be merged based on the provided spec.
This command is mostly for debugging purpose. Use Minion Merge Rollup Task for production.