Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Trino
  • Getting started
    • All guides
      • Getting information on existing clusters
      • Creating a cluster
      • Updating a cluster
      • Trino version upgrade
      • Stopping and starting a cluster
      • Connecting to a cluster
      • Maintenance
      • Deleting a cluster
  • Terraform reference
  • Quotas and limits
  • Access management
  • Pricing policy
  • Yandex Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • Get a list of available versions
  • Before upgrading a version
  • Upgrading the version
  1. Step-by-step guides
  2. Clusters
  3. Trino version upgrade

Trino version upgrade

Written by
Yandex Cloud
Updated at November 24, 2025
  • Get a list of available versions
  • Before upgrading a version
  • Upgrading the version

You can change the Trino version to any of the versions supported by Managed Service for Trino. You can either upgrade or downgrade the version.

Updates and fixes within a version are installed automatically during maintenance.

Get a list of available versionsGet a list of available versions

Management console
  1. Navigate to the folder dashboard and select Managed Service for Trino.

  2. Select a cluster and click Edit on the top panel. This will open the cluster editing page.

    You can see the list of available versions in the Version field.

Before upgrading a versionBefore upgrading a version

Make sure the update does not affect your applications:

  1. Look up Trino release notes for info on how upgrades may affect your applications.
  2. Try upgrading the Trino version on a test cluster.

Upgrading the versionUpgrading the version

Management console
CLI
Terraform
REST API
gRPC API
  1. Navigate to the folder dashboard and select Managed Service for Trino.
  2. Select a cluster and click Edit on the top panel.
  3. Under Basic parameters, select Trino.
  4. Click Save changes.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To change the Trino version:

  1. View the description of the CLI command for updating a cluster:

    yc managed-trino cluster update --help
    
  2. Change the version by running this command:

    yc managed-trino cluster update <cluster_name_or_ID> \
      --version <Trino_version>
    

    You can get the cluster name and ID with the list of clusters in the folder.

  1. Open the current Terraform configuration file describing your infrastructure.

    For information on how to create this file, see Creating a cluster.

  2. Edit the version parameter in the cluster's description:

    resource "yandex_trino_cluster" "<cluster_name>" {
      ...
      version = "<Trino_version>"
      ...
    }
    
  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

  1. Get an IAM token for API authentication and set it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Create a file named body.json and paste the following code into it:

    {
      "updateMask": "trino.version",
      "trino": {
        "version": "<Trino_version>"
      }
    }
    

    Where:

    • updateMask: Comma-separated list of parameters to update.

      Warning

      When you update a cluster, all parameters of the object you are modifying will take their defaults unless explicitly provided in the request. To avoid this, list the settings you want to change in the updateMask parameter.

    • trino.version: Trino version.

  3. Call the Cluster.Update method, e.g., via the following cURL request:

    curl \
      --request PATCH \
      --header "Authorization: Bearer $IAM_TOKEN" \
      --url 'https://trino.api.cloud.yandex.net/managed-trino/v1/clusters/<cluster_ID>'
      --data '@body.json'
    

    You can get the cluster ID with the list of clusters in the folder.

  4. Check the server response to make sure your request was successful.

  1. Get an IAM token for API authentication and save it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume the repository contents are stored in the ~/cloudapi/ directory.

  3. Create a file named body.json and paste the following code into it:

    {
      "cluster_id": "<cluster_ID>",
      "update_mask": {
        "paths": [
          "trino.version"
        ]
      },
      "trino": {
        "version": "<Trino_version>"
      }
    }
    

    Where:

    • cluster_id: Cluster ID.

      You can get the cluster ID with the list of clusters in the folder.

    • update_mask: List of settings you want to update as an array of strings (paths[]).

      Format for listing settings
      "update_mask": {
        "paths": [
          "<setting_1>",
          "<setting_2>",
          ...
          "<setting_N>"
        ]
      }
      

      Warning

      When you update a cluster, all parameters of the object you are modifying will take their defaults unless explicitly provided in the request. To avoid this, list the settings you want to change in the update_mask parameter.

    • version: Trino version.

  4. Use the ClusterService.Update call and send the following request, e.g., via gRPCurl:

    grpcurl \
      -format json \
      -import-path ~/cloudapi/ \
      -import-path ~/cloudapi/third_party/googleapis/ \
      -proto ~/cloudapi/yandex/cloud/trino/v1/cluster_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d @ \
      trino.api.cloud.yandex.net:443 \
      yandex.cloud.trino.v1.ClusterService.Update \
      < body.json
    
  5. View the server response to make sure your request was successful.

Was the article helpful?

Previous
Updating a cluster
Next
Stopping and starting a cluster
© 2025 Direct Cursus Technology L.L.C.