Skip to content

Instantly share code, notes, and snippets.

@wenjianhn
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wenjianhn/48447fcb35feca554589 to your computer and use it in GitHub Desktop.
Save wenjianhn/48447fcb35feca554589 to your computer and use it in GitHub Desktop.
Append KBps for DataNode.clienttrace
awk '/org.apache.hadoop.hdfs.server.datanode.DataNode.clienttrace/{printf "%s, KBps: %d\n", $0, $10/($NF/10**9)/1024}' ${datanode_log}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment