Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102878904
list_unfinished_runs.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 03:34
Size
445 B
Mime Type
text/x-shellscript
Expires
Thu, Feb 27, 03:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24447048
Attached To
R3704 elastic-yarn
list_unfinished_runs.sh
View Options
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: $0 dir"
exit
fi
pushd . &>/dev/null
cd $1
TRACE_FILE=$(ls TRACE*.trace | head -n 1)
NR_JOBS=$(grep -E "^{" $TRACE_FILE | wc -l)
for logfile in $(ls *-simulation.log); do
finished_jobs=$(grep -E "Application appattempt_[0-9]+_[0-9]+_000001 is done. finalState=FINISHED" $logfile | wc -l)
if [ $finished_jobs != $NR_JOBS ]; then
echo $logfile
fi
done
popd &>/dev/null
Event Timeline
Log In to Comment