Run EMR Trino CLI¶
-
SSH to the master node
Bash -
Start the Trino CLI
Bash -
Validate access by running a basic query
After you enter the Trino CLI, run a simple query such as creating a schema:
To create schema, 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 demonstrates access control enforcement:
-
If the user has the required permissions:
The query executes successfully and the schema is created.
- Prev Connector Guide