Package org.apache.hadoop.hbase.fs
Class TestBlockReorderBlockLocation
java.lang.Object
org.apache.hadoop.hbase.fs.TestBlockReorderBlockLocation
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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hdfs.MiniDFSCluster
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hdfs.DistributedFileSystem
private static final String
private static final String
private static final String
private HBaseTestingUtil
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hdfs.protocol.ClientProtocol
getNamenode
(org.apache.hadoop.hdfs.DFSClient dfsc) void
setUp()
void
void
Test that the reorder algo works as we expect.
-
Field Details
-
CLASS_RULE
-
conf
-
cluster
-
htu
-
dfs
-
host1
- See Also:
-
host2
- See Also:
-
host3
- See Also:
-
name
-
-
Constructor Details
-
TestBlockReorderBlockLocation
public TestBlockReorderBlockLocation()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
getNamenode
private static org.apache.hadoop.hdfs.protocol.ClientProtocol getNamenode(org.apache.hadoop.hdfs.DFSClient dfsc) throws Exception - Throws:
Exception
-
testBlockLocation
Test that the reorder algo works as we expect.- Throws:
Exception
-