Package org.apache.hadoop.hbase.fs
Class TestBlockReorder
java.lang.Object
org.apache.hadoop.hbase.fs.TestBlockReorder
Tests for the hdfs fix from HBASE-6435. Please don't add new subtest which involves starting /
stopping MiniDFSCluster in this class. When stopping MiniDFSCluster, shutdown hooks would be
cleared in hadoop's ShutdownHookManager in hadoop 3. This leads to 'Failed suppression of fs
shutdown hook' error in region server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hdfs.MiniDFSClusterprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hdfs.DistributedFileSystemprivate static final Stringprivate static final Stringprivate static final Stringprivate HBaseTestingUtilprivate static final org.slf4j.Loggerorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetHostName(org.apache.hadoop.hdfs.server.datanode.DataNode dn) Allow to get the hostname, using getHostName (hadoop 1) or getDisplayName (hadoop 2)voidsetUp()voidvoidTest that we're can add a hook, and that this hook works when we try to read the file in HDFS.
-
Field Details
-
CLASS_RULE
-
LOG
-
conf
-
cluster
-
htu
-
dfs
-
host1
- See Also:
-
host2
- See Also:
-
host3
- See Also:
-
name
-
-
Constructor Details
-
TestBlockReorder
public TestBlockReorder()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testBlockLocationReorder
Test that we're can add a hook, and that this hook works when we try to read the file in HDFS.- Throws:
Exception
-
getHostName
private String getHostName(org.apache.hadoop.hdfs.server.datanode.DataNode dn) throws InvocationTargetException, IllegalAccessException Allow to get the hostname, using getHostName (hadoop 1) or getDisplayName (hadoop 2)
-