org.apache.whirr.service.hadoop
Class HadoopService

java.lang.Object
  extended by org.apache.whirr.service.Service
      extended by org.apache.whirr.service.hadoop.HadoopService

public class HadoopService
extends Service


Field Summary
static int JOBTRACKER_PORT
           
static int JOBTRACKER_WEB_UI_PORT
           
static Set<String> MASTER_ROLE
           
static int NAMENODE_PORT
           
static int NAMENODE_WEB_UI_PORT
           
static int WEB_PORT
           
static Set<String> WORKER_ROLE
           
 
Constructor Summary
HadoopService()
           
 
Method Summary
 String getName()
           
 HadoopCluster launchCluster(ClusterSpec clusterSpec)
          Start the cluster described by clusterSpec and block until the cluster is available.
 
Methods inherited from class org.apache.whirr.service.Service
destroyCluster, getNodes, runningWithTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HadoopService

public HadoopService()
Method Detail

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.