Package dk.netarkivet.common.hadoop
Class HadoopMiniClusterTestCase
- java.lang.Object
-
- dk.netarkivet.common.hadoop.HadoopMiniClusterTestCase
-
public class HadoopMiniClusterTestCase extends Object
Overhead class for Hadoop tests that need to use a mini cluster.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.hadoop.conf.Configuration
conf
protected static org.apache.hadoop.hdfs.DistributedFileSystem
fileSystem
protected static org.apache.hadoop.hdfs.MiniDFSCluster
hdfsCluster
protected static org.apache.hadoop.yarn.server.MiniYARNCluster
miniYarnCluster
-
Constructor Summary
Constructors Constructor Description HadoopMiniClusterTestCase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
initCluster()
static void
tearDownCluster()
-
-
-
Field Detail
-
hdfsCluster
protected static org.apache.hadoop.hdfs.MiniDFSCluster hdfsCluster
-
conf
protected static org.apache.hadoop.conf.Configuration conf
-
miniYarnCluster
protected static org.apache.hadoop.yarn.server.MiniYARNCluster miniYarnCluster
-
fileSystem
protected static org.apache.hadoop.hdfs.DistributedFileSystem fileSystem
-
-
Method Detail
-
initCluster
public static void initCluster() throws IOException
- Throws:
IOException
-
tearDownCluster
public static void tearDownCluster() throws IOException
- Throws:
IOException
-
-