docker.presto-product-tests.common.hadoop-kerberos.create_kerberos_credential_cache_files.sh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trino-product-tests-launcher Show documentation
Show all versions of trino-product-tests-launcher Show documentation
Trino - Product tests launcher
#!/usr/bin/env bash
set -exuo pipefail
# kinit with enough lifetime to make sure that ticket in cache is valid when the first refresh is triggered on Trino
TICKET_LIFETIME='30m'
kinit -l "$TICKET_LIFETIME" -f -c /etc/trino/conf/presto-server-krbcc \
-kt /etc/trino/conf/presto-server.keytab presto-server/$(hostname -f)@LABS.TERADATA.COM
kinit -l "$TICKET_LIFETIME" -f -c /etc/trino/conf/hive-presto-master-krbcc \
-kt /etc/trino/conf/hive-presto-master.keytab hive/$(hostname -f)@LABS.TERADATA.COM
kinit -l "$TICKET_LIFETIME" -f -c /etc/trino/conf/hdfs-krbcc \
-kt /etc/hadoop/conf/hdfs.keytab hdfs/[email protected]
kinit -l "$TICKET_LIFETIME" -f -c /etc/trino/conf/hive-krbcc \
-kt /etc/hive/conf/hive.keytab hive/[email protected]