Package org.apache.hadoop.hbase.fs
Class TestBlockReorderMultiBlocks
java.lang.Object
org.apache.hadoop.hbase.fs.TestBlockReorderMultiBlocks
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 HBaseTestingUtilityprivate static final org.slf4j.Loggerorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hdfs.protocol.ClientProtocolgetNamenode(org.apache.hadoop.hdfs.DFSClient dfsc) voidsetUp()voidprivate voidtestFromDFS(org.apache.hadoop.hdfs.DistributedFileSystem dfs, String src, int repCount, String localhost) voidTest that the hook works within HBase, including when there are multiple blocks.
-
Field Details
-
CLASS_RULE
-
LOG
-
conf
-
cluster
-
htu
-
dfs
-
host1
- See Also:
-
host2
- See Also:
-
host3
- See Also:
-
name
-
-
Constructor Details
-
TestBlockReorderMultiBlocks
public TestBlockReorderMultiBlocks()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testHBaseCluster
Test that the hook works within HBase, including when there are multiple blocks.- Throws:
Exception
-
testFromDFS
private void testFromDFS(org.apache.hadoop.hdfs.DistributedFileSystem dfs, String src, int repCount, String localhost) throws Exception - Throws:
Exception
-
getNamenode
private static org.apache.hadoop.hdfs.protocol.ClientProtocol getNamenode(org.apache.hadoop.hdfs.DFSClient dfsc) throws Exception - Throws:
Exception
-