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

docker.presto-product-tests.run-presto.sh Maven / Gradle / Ivy

There is a newer version: 458
Show newest version
#!/bin/bash

set -euo pipefail

if test $# -gt 0; then
    echo "$0 does not accept arguments" >&2
    exit 32
fi

set -x

tar xf /docker/presto-server.tar.gz -C /docker
ln -s "$(echo /docker/trino-server-*/bin/launcher | sed 's@/bin/launcher$@@')" /docker/presto-server

if test -d /docker/presto-init.d; then
    for init_script in /docker/presto-init.d/*; do
        "${init_script}"
    done
fi

if [ -z "$JAVA_HOME" ]; then
    echo "JAVA_HOME must be set"
    exit 1
fi

if [ ! -d "$JAVA_HOME" ]; then
    echo "JAVA_HOME $JAVA_HOME does not exist"
    exit 1
fi

export PATH="${JAVA_HOME}/bin:${PATH}"

exec /docker/presto-server/bin/launcher \
  -Dnode.id="${HOSTNAME}" \
  --etc-dir="/docker/presto-product-tests/conf/presto/etc" \
  --data-dir=/var/trino \
  run




© 2015 - 2024 Weber Informatics LLC | Privacy Policy