public class JobHistoryServer extends Object
JobHistoryServer
is responsible for servicing all job history
related requests from client.
History Server can be initialized in one of two modes
* Emdedded within JobTracker
* External daemon, can either be run on the job tracker node or outside
Two Configuration
entries in mapred-site.xml govern the functioning
of the history server
mapred.job.history.server.http.address is address to which history web
server is bound to. If operating in embedded mode, the hostname on
history address has to be same as the job tracker host name
mapred.job.history.server.embedded (default is true) will cause job tracker
to init history server, else the server need to be started as a
separate daemon process限定符和类型 | 字段和说明 |
---|---|
static String |
MAPRED_HISTORY_SERVER_EMBEDDED |
static String |
MAPRED_HISTORY_SERVER_HTTP_ADDRESS |
构造器和说明 |
---|
JobHistoryServer(JobConf conf)
Starts job history server as a independent process
* Initializes ACL Manager
* Starts a webapp to service history requests
|
JobHistoryServer(JobConf conf,
org.apache.hadoop.mapred.ACLsManager aclsManager,
HttpServer httpServer)
Starts job history server as a embedded server within job tracker
* Starts a webapp to service history requests
|
public static final String MAPRED_HISTORY_SERVER_HTTP_ADDRESS
public JobHistoryServer(JobConf conf) throws IOException
conf
- - Mr Cluster configurationIOException
- - any exception starting history serverpublic JobHistoryServer(JobConf conf, org.apache.hadoop.mapred.ACLsManager aclsManager, HttpServer httpServer) throws IOException
conf
- - MR Cluster configurationaclsManager
- - ACLs Manager for user authenticationhttpServer
- - Http Server instanceIOException
- - any exception starting history serverpublic void start() throws IOException
IOException
public void join() throws InterruptedException
public void shutdown() throws Exception
Exception
- - Any exception during shutdownpublic static void main(String[] args)
args
- - Command line argumentsCopyright © 2009 The Apache Software Foundation