Configure Trino Authentication and Resource Groups
Configure Trino to authenticate directory users, resolve their group memberships, and assign their queries to resource groups.
The configuration includes the following files:
password-authenticator.propertiesgroup-provider.propertiesresource-groups.jsonresource-groups.properties
Replace all placeholders with values appropriate for your environment.
Manual configuration: Complete the following steps directly on the Trino host. Ambari does not currently manage these configuration settings.
Configure Directory Authentication
Configure /etc/trino/password-authenticator.properties:
For Active Directory, adjust ldap.user-bind-pattern to match your directory configuration.
For production environments, use LDAPS and avoid storing directory credentials as plaintext in configuration files.
Configure Group Resolution
Configure /etc/trino/conf/group-provider.properties:
For Active Directory, ldap.group-member-attribute is typically member instead of memberUid. Verify the appropriate attributes for your directory schema.
Configure Resource Groups
Configure /etc/trino/conf/resource-groups.json to define the resource groups and map directory groups to them.
For example:
The selectors map directory groups to the corresponding Trino resource groups.
Enable File-Based Resource Group Configuration
Configure /etc/trino/conf/resource-groups.properties:
Restart the Trino coordinator and any relevant services for the configuration changes to take effect.