Run Starburst Trino CLI¶
This section explains how to validate your Starburst Trino setup by using the Trino CLI to run a basic sample query.
-
Check the status of the coordinator and worker pods
Ensure both coordinator and worker pods showBash Runningstatus before proceeding. -
Access the coordinator pod
Bash - From the directory containing the
trino-clibinary, start the Trino CLI using the following command.Bash -
After entering the Trino CLI, execute a basic query to validate access management.
The following example demonstrates creating a schema:To allow schema creation, configure a policy in the Privacera Portal using the following steps:SQL - Navigate to the Privacera Portal.
- Go to Access Management → Resourrce Policies.
- Select the
privacera_hiveservice. - Click Add New Policy (or edit an existing policy, if applicable).
The following is an example policy configuration
Sample Resource Policy:
- Policy Name:
<name of the policy> - Hive Database:
<schema_name> - Permissions:
<create> - User/Group/Role:
<assign your user/group/role>
Expected Behavior¶
The query execution will demonstrate access control enforcement:
- If the user has the required permissions: The query executes successfully and the schema is created.
- Prev topic: Connector Guide