Spring for Apache Hadoop

org.springframework.yarn.test.context
Annotation Type MiniYarnCluster


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface MiniYarnCluster

MiniYarnCluster defines class-level metadata that is used to determine how to load and configure a mini cluster and inject it into ApplicationContext for test classes.

Author:
Janne Valkealahti

Optional Element Summary
 java.lang.String clusterName
          Value defining a name used to set the cluster bean.
 java.lang.String configName
          Value defining a name used to set Configuration bean based on mini cluster runtime config.
 java.lang.String id
          Unique id for the cluster.
 int nodes
          Number of nodes for the cluster.
 

configName

public abstract java.lang.String configName
Value defining a name used to set Configuration bean based on mini cluster runtime config. Default is "yarnConfiguration"

Default:
"yarnConfiguration"

clusterName

public abstract java.lang.String clusterName
Value defining a name used to set the cluster bean. Default is "yarnCluster"

Default:
"yarnCluster"

id

public abstract java.lang.String id
Unique id for the cluster. Default is "default".

Default:
"default"

nodes

public abstract int nodes
Number of nodes for the cluster. Default size is one node.

Default:
1

Spring for Apache Hadoop