Get the hosts for an hadoop job -
i need hosts (so actual machines) differente tasks (mapper , reducer) of hadoop job run. got long running job , need retrieve hosts tasks running. need information in external programm, not inside actual jobs.
i know can use hadoop job -list-attempt-ids job_201307251119_0004 map running
task attempts, not show me hosts.
i know can use jobclient
retrieve host of finished task. in case, task still running.
the solution came mind parse job-tracker-http-interface html page contains host in urls point log-files. not seem right way go, alternatives?
since want hostname mapper/reducer running, write few additional java lines inside mapper/reducer find it. perhaps :
string hostname = java.net.inetaddress.getlocalhost().gethostname();
idk if need.
Comments
Post a Comment