Run Trino CLI¶
This section explains how to validate your Trino setup by running a basic sample query using the Trino CLI.
-
Verify Pod Status Check the status of the coordinator and worker pods
Ensure both coordinator and worker pods showBash Runningstatus before proceeding. -
Access the coordinator pod
Bash - 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 the user to access an S3 path, you need to configure a policy in Privacera Portal with 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