Spring for Apache Hadoop

org.springframework.yarn.test.context
Interface YarnCluster

All Known Implementing Classes:
StandaloneYarnCluster

public interface YarnCluster

Interface for Yarn miniclusters.

Author:
Janne Valkealahti

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 start()
          Starts the cluster.
 void stop()
          Stops the cluster.
 

Method Detail

getConfiguration

org.apache.hadoop.conf.Configuration getConfiguration()
Gets the 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.

Returns:
the Cluster configured Configuration

start

void start()
           throws java.lang.Exception
Starts the cluster.

Throws:
java.lang.Exception - if cluster failed to start

stop

void stop()
Stops the cluster.


getYarnWorkDir

java.io.File getYarnWorkDir()
Gets the working directory of Yarn nodes. This directory can be used to find log files of running containers.

Returns:
Yarn working directory.

Spring for Apache Hadoop