Apache Gravitino Trino connector installation
To install the Apache Gravitino Trino connector, you should first deploy the Trino environment, and then install the Gravitino Trino connector plugin into Trino. Please refer to the Deploying Trino documentation and do the following steps:
- Download the Gravitino Trino connector tarball and unpack it.
The tarball contains a single top-level directory
gravitino-trino-connector-<version>, which called the connector directory. - Copy the connector directory to the Trino's plugin directory.
Normally, the directory location is
Trino-server-<version>/plugin, and the directory contains other catalogs used by Trino. - Add Trino JVM arguments
-Dlog4j.configurationFile=file:////etc/trino/log4j2.propertiesto enable logging for the Gravitino Trino connector. - Update Trino coordinator configuration.
You need to set
catalog.management=dynamic, The config location isTrino-server-<version>/etc/config.properties, and the contents like:
coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
catalog.management=dynamic
discovery.uri=http://0.0.0.0:8080
Alternatively,
you can build the Gravitino Trino connector package from the sources
and obtain the gravitino-trino-connector-<version>.tar.gz file in the $PROJECT/distribution directory.
Please refer to the Gravitino Development documentation
Example
You can install the Gravitino Trino connector in Trino office docker images step by step.
Running the container
Use the docker command to create a container from the trinodb/trino image. Assign it the trino-gravitino name.
Run it in the background, and map the default Trino port, which is 8080, from inside the container to port 8080 on your machine.
docker run --name trino-gravitino -d -p 8080:8080 trinodb/trino:435
Run docker ps to check whether the container is running.