Skip to content

Instantly share code, notes, and snippets.

@alexanderlz
Created May 20, 2012 12:22
Show Gist options
  • Save alexanderlz/2757905 to your computer and use it in GitHub Desktop.
Save alexanderlz/2757905 to your computer and use it in GitHub Desktop.
hadoop cli - oneliner to list running jobs with duration and slots usage
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