Created
May 20, 2012 12:22
-
-
Save alexanderlz/2757905 to your computer and use it in GitHub Desktop.
hadoop cli - oneliner to list running jobs with duration and slots usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hadoop job -list | grep job_ | awk 'BEGIN{FS="\t";OFS=","};{print $1,strftime("%H:%M:%S", (systime()-int($3/1000)),1),"\""$4"\"","\""$6"\""}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment