|
|||||||||
| 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(String clusterName)
Instantiates a mini cluster with default cluster node count. |
|
StandaloneYarnCluster(String clusterName,
int nodes)
Instantiates a mini cluster with given cluster node count. |
|
| Method Summary | |
|---|---|
Configuration |
getConfiguration()
Gets the Configuration for the cluster. |
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(String clusterName)
clusterName - the unique cluster name
public StandaloneYarnCluster(String clusterName,
int nodes)
clusterName - the unique cluster namenodes - the node count| Method Detail |
|---|
public Configuration getConfiguration()
YarnClusterConfiguration 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 YarnClusterConfiguration
public void start()
throws IOException
YarnCluster
start in interface YarnClusterIOExceptionpublic void stop()
YarnCluster
stop in interface YarnClusterpublic File getYarnWorkDir()
YarnCluster
getYarnWorkDir in interface YarnClusterpublic 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 | ||||||||