|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.yarn.test.support.StandaloneYarnCluster
public class StandaloneYarnCluster
Standalone simple mini cluster having Yarn and Hdfs nodes.
Constructor Summary | |
---|---|
StandaloneYarnCluster(java.lang.String clusterName)
Instantiates a mini cluster with default cluster node count. |
|
StandaloneYarnCluster(java.lang.String clusterName,
int nodes)
Instantiates a mini cluster with given cluster node count. |
Method Summary | |
---|---|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the Configuration for the cluster. |
java.io.File |
getYarnWorkDir()
Gets the working directory of Yarn nodes. |
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 StandaloneYarnCluster(java.lang.String clusterName)
clusterName
- the unique cluster namepublic StandaloneYarnCluster(java.lang.String clusterName, int nodes)
clusterName
- the unique cluster namenodes
- the node countMethod Detail |
---|
public org.apache.hadoop.conf.Configuration getConfiguration()
YarnCluster
Configuration
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 YarnCluster
Configuration
public void start() throws java.io.IOException
YarnCluster
start
in interface YarnCluster
java.io.IOException
public void stop()
YarnCluster
stop
in interface YarnCluster
public java.io.File getYarnWorkDir()
YarnCluster
getYarnWorkDir
in interface YarnCluster
public void setNodes(int nodes)
nodes
- the number of nodes
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |