You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by rohit sarewar <ro...@gmail.com> on 2013/03/29 16:37:48 UTC
How to use HPROF for rhadoop jobs ?
Hi All
I can use HPROF in java map reduce jobs.
Configuration conf = getConf();
conf.setBoolean("mapred.task.profile", true);
conf.set("mapred.task.profile.params", "-agentlib:hprof=cpu=samples," +
"heap=sites,depth=6,force=n,thread=y,verbose=n,file=%s");
conf.set("mapred.task.profile.maps", "0-2");
conf.set("mapred.task.profile.reduces", ""); // no reduces
Job job = new Job(conf, "Max temperature");
Can some one provide an example code which shows how HPROF is used in
rhadoop jobs.
Thanks
Rohit Sarewar