macOS Sierra での Cloudera Altus Director 6.0 のログ出力先は以下の通り。
- /usr/local/Cellar/cloudera-director-client/6.0.0/libexec/logs
- /usr/local/Cellar/cloudera-director-server/6.0.0/libexec/logs
以下は調べてみたメモ。
- /usr/local/bin/cloudera-director-server-start
SOURCE=$0 ★ while [ -h "$SOURCE" ]; do LOOKUP=$(ls -ld "$SOURCE") TARGET=$(expr "$LOOKUP" : '.*-> \(.*\)$') if expr "${TARGET:-.}/" : '/.*/$' > /dev/null; then SOURCE=${TARGET:-.} else SOURCE=$(dirname "$SOURCE")/${TARGET:-.} fi done CLOUDERA_DIRECTOR_HOME=$(cd "$(dirname "$SOURCE")"; cd ..; pwd) ★ cd "${CLOUDERA_DIRECTOR_HOME}" || exit 1 if [ -f "/etc/default/cloudera-director-server" ]; then # shellcheck disable=SC1091 . /etc/default/cloudera-director-server fi SERVER_OUTPUT="${CLOUDERA_DIRECTOR_HOME}/logs/output.txt" PID_DIR=${DIRECTOR_SERVER_PID_DIR:-$CLOUDERA_DIRECTOR_HOME} PID_FILE="${PID_DIR}/application.pid" # Do a quick check to see if the process is already running if [ -f "${PID_FILE}" ] && kill -0 "$(cat "${PID_FILE}")"; then echo "Cloudera Altus Director Server is already running" exit 0 fi # If not start in the background # Wait for it to start (or exit on failure) # We will perform up to MAX_ITERATIONS iterations of 3 seconds waits MAX_ITERATIONS=${MAX_ITERATIONS:-10} SLEEP_TIME=3 (( timeout = MAX_ITERATIONS * SLEEP_TIME )) printf "Starting Cloudera Altus Director Server in background with timeout %d seconds ..." "${timeout}" mkdir -p "${CLOUDERA_DIRECTOR_HOME}/logs" ★
$ which cloudera-director-server-start /usr/local/bin/cloudera-director-server-start $ ls -l /usr/local/bin/cloudera-director-server-start lrwxr-xr-x 1 yohei-a admin 75 9 21 16:03 /usr/local/bin/cloudera-director-server-start -> ../Cellar/cloudera-director-server/6.0.0/bin/cloudera-director-server-start $ find /usr/local/Cellar -type d -name logs /usr/local/Cellar/awscli/1.11.74/libexec/lib/python2.7/site-packages/awscli/examples/logs /usr/local/Cellar/awscli/1.11.74/libexec/lib/python2.7/site-packages/botocore/data/logs /usr/local/Cellar/awscli/1.11.74/share/awscli/examples/logs /usr/local/Cellar/cloudera-director-client/6.0.0/libexec/logs /usr/local/Cellar/cloudera-director-server/6.0.0/libexec/logs