Skip to content

Commit

Permalink
Catch json decoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Jan 15, 2025
1 parent c7620f5 commit 33fcf77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scheduler/check_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ for file in $FILES; do
MESSAGE+="SPARK FAILURE: $(basename $file) $newline"
fi

isJsonProblem=$(grep -n JSONDecodeError "$file")
if [[ $isJsonProblem != "" ]]; then
MESSAGE+="JSON FAILURE: $(basename $file) $newline"
fi

isHdfsProblem=$(grep -n "Name node is in safe mode" "$file")
if [[ $isHdfsProblem != "" ]]; then
MESSAGE+="HDFS FAILURE: $(basename $file) $newline"
Expand Down

0 comments on commit 33fcf77

Please sign in to comment.