Closed cjac closed 4 months ago
fixed in #1089
May need to be paired with --metadata startup-script-url="${INIT_ACTIONS_ROOT}/delay-masters-startup.sh"
#!/bin/bash
set -x
readonly ROLE="$(/usr/share/google/get_metadata_value attributes/dataproc-role)"
if [[ "${ROLE}" != 'Master' ]]; then set +x; exit 0; fi
node_number=$(echo ${HOSTNAME} | perl -ne '/-m-(\d+)/; print $1')
delay_seconds=$((${node_number} * 60))
sleep ${delay_seconds}s
NOW=$(date +"%F-%T")
echo "instance #${node_number} (${HOSTNAME}) proceeds at ${NOW}" | tee /var/log/delay-masters.log
set +x
This issues appears to be resolved
Some users may experience script failure when clusters start the oozie init action script prior to HDFS being fully online.