|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.test.support.StandaloneHadoopCluster
public class StandaloneHadoopCluster
Standalone simple mini cluster having MR and Hdfs nodes.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Configuration |
getConfiguration()
Gets the Configuration for the cluster. |
FileSystem |
getFileSystem()
Gets the configured FileSystem managed
by HadoopCluster. |
void |
setNodes(int nodes)
Sets a number of nodes for cluster. |
void |
start()
Starts the cluster. |
void |
stop()
Stops the cluster. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandaloneHadoopCluster(String clusterName)
clusterName - the unique cluster name
public StandaloneHadoopCluster(String clusterName,
int nodes)
clusterName - the unique cluster namenodes - the node count| Method Detail |
|---|
public 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 HadoopClusterConfiguration
public void start()
throws IOException
HadoopCluster
start in interface HadoopClusterIOExceptionpublic void stop()
HadoopCluster
stop in interface HadoopCluster
public FileSystem getFileSystem()
throws IOException
HadoopClusterFileSystem managed
by HadoopCluster.
getFileSystem in interface HadoopClusterIOException - if error occuredpublic void setNodes(int nodes)
nodes - the number of nodes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||