Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P10525
fix-oozie.sh
Active
Public
Actions
Authored by
EBernhardson
on Feb 25 2020, 11:23 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31631069: raw.txt
Feb 25 2020, 11:23 PM
2020-02-25 23:23:03 (UTC+0)
Subscribers
None
OOZIE_URL
=
"http://an-coord1001.eqiad.wmnet:11000/oozie"
COORD_ID
=
"
$((
oozie
jobs
-
oozie
$OOZIE_URL
-
jobtype coordinator
-
filter
name
=
query_clicks_hourly-coord
;
status
=
RUNNING
)
|
awk
'/RUNNING/ { print $1 }'
)
"
echo "
Coordinator:
$COORD_ID
"
FAILED="
$(
oozie job -oozie
$OOZIE_URL
-info
$COORD_ID
-filter
"status=KILLED"
|
awk
'/KILLED/ {print $8 "T" $9 "Z"}'
)
"
echo "
$FAILED
"
if [ -z "
$FAILED
" ]; then
echo "
All good
"
else
echo "
$FAILED
" | while read date; do
oozie job -oozie
$OOZIE_URL
-rerun
$COORD_ID
-date
$date
done
fi
Event Timeline
EBernhardson
created this paste.
Feb 25 2020, 11:23 PM
2020-02-25 23:23:03 (UTC+0)
EBernhardson
mentioned this in
T246177: Track maintenance operations for data pipelines
.
Feb 25 2020, 11:25 PM
2020-02-25 23:25:26 (UTC+0)
Log In to Comment