The data catalog provides a unified interface for managing StarRocks metadata, including tables, views, and materialized views.
Go to the StarRocks data catalog
-
Go to the Workspaces page in the DataWorks console. In the top navigation bar, select a desired region. Find the desired workspace and choose in the Actions column.
-
In the navigation pane on the left, click the
icon. In the Data Directory tree, click StarRocks to open the StarRocks data catalog management page.
Create a StarRocks data catalog
Add existing StarRocks data sources as datasets to the data catalog list.
-
Click the
icon to the right of the StarRocks data catalog to open the add instance page. -
On the DataWorks Data Source tab, add StarRocks data sources to the data catalog list.
-
To manage an existing StarRocks data source in the current workspace, find the data source on the DataWorks Data Source tab and click Add in the Operation column.
-
Alternatively, select multiple StarRocks data sources on the DataWorks Data Source tab and click Batch Add at the bottom of the list.
-
Manage a StarRocks data catalog
Add and manage data objects such as tables, views, and materialized views in the StarRocks data catalog.
Manage tables
Manage views
Manage materialized views
View and remove a StarRocks data catalog
View the instances in a StarRocks data catalog or remove the catalog when it is no longer needed.
-
View data catalogs.
-
After you add an instance to the StarRocks data catalog, click the
icon on the left of the StarRocks data catalog to view the added StarRocks instances. -
Hover over the corresponding StarRocks instance to view the associated data source name.
-
-
Remove a data catalog.
If you no longer need to manage a StarRocks data catalog, right-click the corresponding StarRocks data catalog and select Remove from the context menu to remove the data catalog.
FAQ
Q: Metadata fails to load, and the error "you need (at least one of) the SELECT privilege(s) on TABLE tables for this operation" is returned.
A: You need to grant the SELECT privilege on the information_schema database. For more information, see Grant privileges to users in EMR Serverless StarRocks.