Skip to content

Trino with Ranger

Introduction

This guide will walk you through the steps to run Trino with Apache Ranger as the Access Control Enforcer.

Run Trino Container

Run Trino in Ranger's Network
docker pull trinodb/trino
docker run -p 8080:8080 --name trino --network rangernw trinodb/trino

# for more details: https://hub.docker.com/r/trinodb/trino

Configure Ranger Plugin in Trino Container

Update access-control.properties in /etc/trino/ in Trino container
access-control.name=ranger
ranger.service.name=dev_trino
ranger.plugin.config.resource=/etc/trino/ranger-trino-security.xml,/etc/trino/ranger-trino-audit.xml,/etc/trino/ranger-policymgr-ssl.xml
ranger.hadoop.config.resource=

# For details to configure Apache Ranger: https://trino.io/docs/current/security/ranger-access-control.html

Restart Trino Container