Spring for Apache Hadoop

org.springframework.data.hadoop.test.context
Annotation Type MiniHadoopCluster


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

MiniHadoopCluster 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 "hadoopConfiguration"

Default:
"hadoopConfiguration"

clusterName

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

Default:
"hadoopCluster"

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