Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102873692
summarize-cdf-rel-and-abs
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, 02:18
Size
740 B
Mime Type
text/x-shellscript
Expires
Thu, Feb 27, 02:18 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24447442
Attached To
R3704 elastic-yarn
summarize-cdf-rel-and-abs
View Options
#!/bin/bash
YARN_PATH
=
/HDD-2TB/YARN
if
[
$#
-ne 1
]
then
echo
"Give param dir name"
exit
fi
cd
$1
echo
$1
find | grep parameters | head -n 1 | xargs -I
{}
cat
{}
| sed
's/[ \t]\+/ /g'
| cut -d
' '
-f3- | column -t
cd
..
$YARN_PATH
/scripts/summarize-cdf-absolute
$1
| awk
'
BEGIN{a=0;b=0;c=0;d=0;e=0;f=0;}
/TRACE/ {print}
/SIMTYPE/ {print $0,"aaa",$2,$3,$4,$5,$6,$7;}
/-----/ {print "bbbb"}
/regular/ {a=$2;b=$3;c=$4;d=$5;e=$6;f=$7; print $0,"aaa",100,100,100,100,100,100}
!/regular/ && !/TRACE/ && !/SIMTYPE/ && !/-----/ {printf "%s %s %d %d %d %d %d %d\n",$0,"aaa",$2*100/a,$3*100/b,$4*100/c,$5*100/d,$6*100/e,$7*100/f}
'
| column -t | sed
's/aaa/ /g'
|sed
's/bb/------------------------------------------------------------/g'
Event Timeline
Log In to Comment