Accessing Trino from CLI
You can access Trino from the CLI for both HA and non-HA clusters.
Big Data Service 3.0.23 and later:
Use the following command to access Trino from CLI in a HA cluster:
/usr/lib/trino/bin/trino-cli --server https://<host>:7778 --krb5-principal <trino-keytab-principal> --krb5-keytab-path <trino-keytab-path> --krb5-remote-service-name trino --truststore-path=/etc/security/serverKeys/truststore.jksBefore Big Data Service 3.0.23:
Use the following command to access Trino from CLI in a HA cluster:
/usr/lib/trino/bin/trino-cli --server https://<host>:7778 --krb5-principal <trino-keytab-principal> --krb5-keytab-path <trino-keytab-path> --krb5-remote-service-name trino --user <trino-keytab-principal> --truststore-path=/etc/security/serverKeys/truststore.jkswhere:
hostis the FQDN of the master node where Trino coordinator is running,--krb5-principalis the principal to use when authenticating to the coordinator, and--krb5-keytab-pathis the location of the keytab that can be used to authenticate the principal specified by--krb5-principal.
Use the following command to access Trino from CLI in a non-HA cluster:
/usr/lib/trino/bin/trino-cli --server http://<host>:8285where host is the FQDN of the master node where Trino coordinator is running.