org.apache.whirr.service.hadoop
Class HadoopService
java.lang.Object
org.apache.whirr.service.Service
org.apache.whirr.service.hadoop.HadoopService
public class HadoopService
- extends Service
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MASTER_ROLE
public static final Set<String> MASTER_ROLE
WORKER_ROLE
public static final Set<String> WORKER_ROLE
WEB_PORT
public static final int WEB_PORT
- See Also:
- Constant Field Values
NAMENODE_PORT
public static final int NAMENODE_PORT
- See Also:
- Constant Field Values
JOBTRACKER_PORT
public static final int JOBTRACKER_PORT
- See Also:
- Constant Field Values
NAMENODE_WEB_UI_PORT
public static final int NAMENODE_WEB_UI_PORT
- See Also:
- Constant Field Values
JOBTRACKER_WEB_UI_PORT
public static final int JOBTRACKER_WEB_UI_PORT
- See Also:
- Constant Field Values
HadoopService
public HadoopService()
getName
public String getName()
- Specified by:
getName
in class Service
- Returns:
- the unique name of the service.
launchCluster
public HadoopCluster launchCluster(ClusterSpec clusterSpec)
throws IOException
- Description copied from class:
Service
- Start the cluster described by
clusterSpec
and block until the
cluster is
available. It is not guaranteed that the service running on the cluster
has started when this method returns.
- Specified by:
launchCluster
in class Service
- Returns:
- an object representing the running cluster
- Throws:
IOException
- if there is a problem while starting the cluster. The
cluster may or may not have started.
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.