githubEdit

Controller Admin API

The Pinot Admin UIarrow-up-right 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 APIarrow-up-right for querying Pinot.

Let's check out the tables in this cluster by going to Table -> List all tables in clusterarrow-up-right 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.

List all tables in cluster

You can look at the configuration of this table by going to Tables -> Get/Enable/Disable/Drop a tablearrow-up-right, 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 clusterarrow-up-right and click Try it out!. We can see a schema called baseballStats in this list.

List all schemas in the cluster

Take a look at the schema by going to Schema -> Get a schemaarrow-up-right, 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 segmentsarrow-up-right, 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:

circle-exclamation

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=0d in 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?