Instantly share code, notes, and snippets.
以回帖的形式进行记录。
查看集群运行任务的内存使用情况
for h in `cat hadoop-2.2.0/etc/hadoop/slaves | grep -v '#' ` ; do ssh $h "/usr/local/jdk1.7.0_17/bin/jps -m | grep YarnChild | awk '{print \$1}' | xargs -I{} /usr/local/jdk1.7.0_17/bin/jstat -gcutil {} "; done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
log4j日志附带线程信息
%t
取表格的第二行
$("#list tr:eq(1)")
选择第一行,用 $('tr:fisrt') 选择第N行用 $('tr:eq(n-1)') $("tr td:nth-child(2)")
查看集群运行任务的内存使用情况