All Downloads are FREE. Search and download functionalities are using the official Maven repository.

docker.presto-product-tests.common.hadoop-kerberos.create_kerberos_credential_cache_files.sh Maven / Gradle / Ivy

There is a newer version: 451
Show newest version
#!/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]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy