Controller Admin API
The Pinot Admin UI contains all the APIs that you will need to operate and manage your cluster. It provides a set of APIs for Pinot cluster management including health check, instances management, schema and table management, data segments management.
Note: The controller API's are primarily for admin tasks. Even though the UI console queries Pinot when running queries from the query console, use the Broker Query API for querying Pinot.

Let's check out the tables in this cluster by going to Table -> List all tables in cluster and click on Try it out!. We can see the baseballStats table listed here. We can also see the exact curl call made to the controller API.

You can look at the configuration of this table by going to Tables -> Get/Enable/Disable/Drop a table, type in baseballStats in the table name, and click Try it out!
Let's check out the schemas in the cluster by going to Schema -> List all schemas in the cluster and click Try it out!. We can see a schema called baseballStats in this list.

Take a look at the schema by going to Schema -> Get a schema, type baseballStats in the schema name, and click Try it out!.
Finally, let's checkout the data segments in the cluster by going to List all segments, type in baseballStats in the table name, and click Try it out!. There's 1 segment for this table, called baseballStats_OFFLINE_0.
Deleting tables and schemas
You can delete tables and schemas using the REST API or the Pinot Data Explorer UI.
Using the API
To delete a table, send a DELETE request to /tables/{tableName}. By default, segments are moved to a deleted-segments area and retained for a period (default 7 days) before permanent removal. To delete segments immediately with no retention, pass retention=0d:
To also delete the schema after deleting the table, send a separate DELETE request:
Using retention=0d permanently deletes all data immediately with no possibility of recovery. Only use this for development, testing, or cleanup scenarios where the data is no longer needed.
For more details on the delete table API and its parameters, see the Controller API Reference.
Using the Data Explorer UI
In the Pinot Data Explorer, navigate to a table and click Delete Table. The delete dialog provides two options:
Delete Immediately -- Bypasses the default segment retention period and deletes all segments right away. This is equivalent to passing
retention=0din the API. This is useful for large tables where the default delete operation might time out.Delete Schema -- After successfully deleting the table, also deletes the associated schema. This only works if no other tables are using the same schema.
You might have figured out by now, in order to get data into the Pinot cluster, we need a table, a schema and segments. Let's head over to Batch upload sample data, to find out more about these components and learn how to create them for your own data.
Last updated
Was this helpful?

