public class TestBlockReorder extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hdfs.MiniDFSCluster |
cluster |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hdfs.DistributedFileSystem |
dfs |
private static String |
host1 |
private static String |
host2 |
private static String |
host3 |
private HBaseTestingUtility |
htu |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
Constructor and Description |
---|
TestBlockReorder() |
Modifier and Type | Method and Description |
---|---|
private String |
getHostName(org.apache.hadoop.hdfs.server.datanode.DataNode dn)
Allow to get the hostname, using getHostName (hadoop 1) or getDisplayName (hadoop 2)
|
void |
setUp() |
void |
tearDownAfterClass() |
void |
testBlockLocationReorder()
Test that we're can add a hook, and that this hook works when we try to read the file in HDFS.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hdfs.MiniDFSCluster cluster
private HBaseTestingUtility htu
private org.apache.hadoop.hdfs.DistributedFileSystem dfs
private static final String host1
private static final String host2
private static final String host3
public org.junit.rules.TestName name
public TestBlockReorder()
public void tearDownAfterClass() throws Exception
Exception
public void testBlockLocationReorder() throws Exception
Exception
private String getHostName(org.apache.hadoop.hdfs.server.datanode.DataNode dn) throws InvocationTargetException, IllegalAccessException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.