Usage of xargs to kill all hadoop processes.

#ps aux|grep hadoop|awk {‘print $2’}|xargs kill -9

Advertisements