In Hadoop , how to get the instance of currently running Jobtracker?
I am working on a Monitoring Tool for Hadoop. I need to get the curren开发者_运维问答tly running jobtracker. How can I get that?
Check out the <hadoopdir>/conf/mapred-site.xml
configuration file.
In this file, you should find a <property>
that has a <name>
of mapred.job.tracker
:
<property>
<name>mapred.job.tracker</name>
<value>node5:12345</value>
<property>
This tells you what node it is running on and what port it is running on.
If you are looking for any specific information, please elaborate in your original question.
I believe the closest you can get at this time is using the JobClient class: here
This will allow you to see running jobs, or walk all jobs.
精彩评论