Конференция Arenadata
ArenaTech 2026 – для всех, кому интересны технологии Big Data
Приглашаем вас принять участие в технической онлайн-конференции, посвященной работе с большими данными. Участие бесплатно для всех желающих.

В программе 3 блока докладов:

  • СУБД: архитектура и эксплуатация. Обсудим новые возможности Greengage DB и Arenadata DB на его основе, включая hot standby, обзор утилиты изменения кластерной топологии ggrebalance, вопросы безопасности и устранения CVE.
  • Платформа данных: безопасность и Kubernetes в ADH, аналитика в ADQM. Расскажем об управлении секретами и доступом в Arenadata Hyperwave с использованием OpenBao, особенности переноса сервисов в Kubernetes, а также про аналитические методы в инструментах ADQM.
  • Инструменты: кластерный менеджер, документация, ИИ-поиск. Поделимся опытом разработки технической документации (включая интеллектуальный поиск и ИИ-ассистент) и поговорим про развитие нашего кластерного менеджера ADCM.
Онлайн-конференция состоится 29 октября 2026 года, время трансляции: с 12:00 до 19:00 по московскому времени.
Осталось до события

Kerberos authentication in Trino

Kerberos authentication pipeline for Trino requires performing several additional actions which depend on whether the Ranger Trino plugin is enabled or not. This articles demonstrates the differences of the approaches.

To setup Kerberos authentication for Trino, follow the steps below:

  1. Activate SSL for your ADH cluster.

  2. Enable Kerberos for your ADH cluster.

  3. Go to the Trino Coordinator component settings and edit the user-mapping.json file parameter so that its contents are as follows:

    {
      "rules": [
        {
          "pattern": "(.+)@(.*)"
        },
        {
          "pattern": "^(.*?)/.*$"
        }
      ]
    }
  4. Configure impersonation settings.

  • With Ranger plugin

  • Without Ranger plugin

  1. In Ranger, create a user for the Kerberos principal that will be executing Trino CLI commands.

  2. Add that user to the all - trinouser, all - catalog, schema, table, column, and all - queryid policies in Trino.

On the Trino configuration page in ADCM, expand the access-control.properties parameter group and edit the rules_json_patter parameter so that it includes permissions for impersonation and catalogs, for example:

{
  "system": {
    "impersonation": [
      {
        "user": "<user with permissions, like `trino`>",
        "allow": {
          "user": "<user who will run trino-cli>"
        }
      }
    ]
  },
  "catalogs": [
    {
      "role": "admin",
      "catalog": "hive-adh",
      "allow": "all"
    },
    {
      "user": "trino",
      "catalog": "iceberg-adh",
      "allow": "all"
    },
    {
      "user": "<user who will run trino-cli>",
      "catalog": "iceberg-adh",
      "allow": "all"
    }
  ]
}

Check that everything works correctly by running a Trino CLI command:

$ trino --execute 'select * from "hive-adh"."default"."solar_objects";'

The output is expected to be the table’s content:

"1","Sun","1989100000","1392000"
"2","Mercury","330","4879"
"3","Venus","4867","12104"
"4","Earth","5972","12742"
"5","Mars","642","6780"
"6","Jupiter","1898187","139822"
"7","Saturn","568317","116464"
"8","Uranus","86813","50724"
"9","Neptune","102413","49244"
Found a mistake? Seleсt text and press Ctrl+Enter to report it