public class StandaloneHadoopCluster extends Object implements HadoopCluster
| Constructor and Description | 
|---|
| StandaloneHadoopCluster(String clusterName)Instantiates a mini cluster with default
 cluster node count. | 
| StandaloneHadoopCluster(String clusterName,
                       int nodes)Instantiates a mini cluster with given
 cluster node count. | 
| Modifier and Type | Method and Description | 
|---|---|
| Configuration | getConfiguration()Gets the  Configurationfor the cluster. | 
| FileSystem | getFileSystem()Gets the configured  FileSystemmanaged
 byHadoopCluster. | 
| void | setNodes(int nodes)Sets a number of nodes for cluster. | 
| void | start()Starts the cluster. | 
| void | stop()Stops the cluster. | 
public StandaloneHadoopCluster(String clusterName)
clusterName - the unique cluster namepublic StandaloneHadoopCluster(String clusterName, int nodes)
clusterName - the unique cluster namenodes - the node countpublic Configuration getConfiguration()
HadoopClusterConfiguration for the cluster.
 As most of the configuration parameters are not
 known until after cluster has been started, this
 configuration should be configured by the
 cluster itself.getConfiguration in interface HadoopClusterConfigurationpublic void start()
           throws IOException
HadoopClusterstart in interface HadoopClusterIOExceptionpublic void stop()
HadoopClusterstop in interface HadoopClusterpublic FileSystem getFileSystem() throws IOException
HadoopClusterFileSystem managed
 by HadoopCluster.getFileSystem in interface HadoopClusterIOException - if error occuredpublic void setNodes(int nodes)
nodes - the number of nodes