# Installation

> Install the Stackable Operator for Trino using stackablectl or Helm. Includes optional setup for Hive, S3, and OPA integration.

On this page you install the Stackable operator for Trino as well as the commons, secret and listener operator which are required by all Stackable operators.

## Stackable operators

The [`stackablectl`](https://docs.stackable.tech/management/stable/stackablectl/index.md) command line tool is the recommended way to interact with operators and dependencies. If you have not installed `stackablectl`, follow the [installation steps](https://docs.stackable.tech/management/stable/stackablectl/installation/index.md) to install it. You can also use Helm instead. OpenShift users may prefer installing the operator from the RedHat Certified Operator catalog using the OpenShift web console.

**Tab: stackablectl**

Run the following command to install the Trino operator and its dependencies:

```console
stackablectl operator install \
  commons=26.7.0 \
  secret=26.7.0 \
  listener=26.7.0 \
  trino=26.7.0
```

The tool prints

```
Installed commons=26.7.0 operator
Installed secret=26.7.0 operator
Installed listener=26.7.0 operator
Installed trino=26.7.0 operator
```

> **Tip:** Consult the [Quickstart](https://docs.stackable.tech/management/stable/stackablectl/quickstart/index.md) to learn more about how to use `stackablectl`.

**Tab: Helm**

> **Note:** `helm repo` subcommands are not supported for OCI registries. The operators are installed directly, without adding the Helm Chart repository first.

Install the Stackable operators:

```console
helm install --wait commons-operator oci://oci.stackable.tech/sdp-charts/commons-operator --version 26.7.0
helm install --wait secret-operator oci://oci.stackable.tech/sdp-charts/secret-operator --version 26.7.0
helm install --wait listener-operator oci://oci.stackable.tech/sdp-charts/listener-operator --version 26.7.0
helm install --wait trino-operator oci://oci.stackable.tech/sdp-charts/trino-operator --version 26.7.0
```

## Optional installation steps

Some Trino connectors like `hive` or `iceberg` work together with the Apache Hive metastore and S3 buckets. For these components extra steps are required.

-   a Stackable Hive metastore

-   an accessible S3 bucket

    -   an end-point, and access- and secret-keys

    -   data in the bucket (we use the [Iris](https://archive.ics.uci.edu/ml/datasets/iris) dataset here)


-   the following are optional

    -   a Stackable [Secret Operator](https://docs.stackable.tech/home/stable/secret-operator/index.md) for certificates when deploying for TLS

    -   a Stackable [Commons Operator](https://docs.stackable.tech/home/stable/commons-operator/index.md) for certificates when deploying for TLS authentication

    -   (for authorization): a Stackable [OPA Operator](https://docs.stackable.tech/home/stable/opa/index.md)

    -   the [Trino CLI](https://repo.stackable.tech/#browse/browse:packages:trino-cli%2Ftrino-cli-481) to test SQL queries



### S3 bucket

Refer to the S3 provider.

### Hive operator

Refer to the [Hive operator](https://docs.stackable.tech/home/stable/hive/index.md) docs. Both Hive and Trino need the same S3 authentication.

### OPA operator

Refer to the [OPA operator](https://docs.stackable.tech/home/stable/opa/index.md) docs.

## What’s next

[Set up a Trino cluster](https://docs.stackable.tech/home/stable/trino/getting_started/first_steps/index.md) and its dependencies.
