Druid console
Druid includes a web console for loading data, managing datasources and tasks, and viewing server status and segment information. You can also run SQL and native Druid queries in the console.
In an Imply cluster, access the Druid console by clicking on the window icon on the right side of the Data page in Pivot:
The Druid console is hosted by the Router service, and can be accessed directly at http://{router_host}:8888.
It is important to note that any Druid console user will have, effectively, the same file permissions as the user under which Druid runs. One way these permissions are surfaced is in the file browser dialog. The dialog will show console users the files that the underlying user has permissions to. In general, avoid running Druid as root user. Consider creating a dedicated user account for running Druid.
Below is a tour of the Druid console, with descriptions of the features and functionality of the console.
Home view
The home view provides a high-level overview of the cluster. Each card is clickable and links to the appropriate view.
The home view has the following cards:
- Status. Click this card for information on the Druid version and any extensions loaded on the cluster.
- Datasources
- Segments
- Supervisors
- Tasks
- Services
- Lookups
The data loader and lookups view are not cards on the home page, but you can access these views from the top-level navigation.
Data loader view
The data loader view allows you to load data by building an ingestion spec with a step-by-step wizard.
After selecting the location of your data, follow the series of steps displaying incremental previews of the data as it is ingested. After filling in the required details on every step you can navigate to the next step by clicking Next. You can also freely navigate between the steps from the top navigation.
Navigating with the top navigation leaves the underlying spec unmodified while clicking the Next
button attempts to fill in the subsequent steps with appropriate defaults.
Datasources view
The datasources view shows all the datasources currently loaded on the cluster. A datasource is partitioned into one or more segments organized by time chunks. Toggle the option for Show segment timeline to display the segment timeline.
Like any view that is powered by a Druid SQL query, you can click View SQL query for table from the ...
menu to run the underlying SQL query directly.
From the datasources view, you can see the availability and size of each datasource. You can edit the data retention rules, configure automatic compaction, and drop data from a datasource.
You can view and edit retention rules to determine the general availability of a datasource.
Segments view
The segments view shows all the segments in the cluster. Each segment has a detail view that provides more information. The Segment ID is also conveniently broken down into Datasource, Start, End, Version, and Partition columns for ease of filtering and sorting.
Supervisors and tasks view
From this view you can check the status of existing supervisors as well as suspend, resume, and reset them. The supervisor oversees the state of the indexing tasks to coordinate handoffs, manage failures, and ensure that the scalability and replication requirements are maintained.
The tasks table allows you to see the currently running and recently completed tasks. To better manage your tasks, you can group them by their Type, Datasource, or Status to make navigation easier.
Click on the magnifying glass for any supervisor to see detailed reports of its progress.
Click on the magnifying glass for any task to see more detail about it.
Services view
The services view lets you see the current status of the nodes making up your cluster. You can group the nodes by type or by tier to get meaningful summary statistics.
Query view
The query view lets you issue Druid SQL queries and display the results as a table. The view will attempt to infer your query and let you modify the query via contextual actions such as adding filters and changing the sort order when possible.
From the ...
menu beside Run, you can view your query history, see the native query translation for a given Druid SQL query, and set the query context.
The query view can also issue queries in Druid's native query format, which is JSON over HTTP.
To send a native Druid query, start your query with {
and format it as JSON.
Lookups view
Access the lookups view from the Lookups card in the home view or by clicking on the gear icon in the upper right corner. Here you can create and edit query time lookups.