本文整理汇总了Java中org.apache.hadoop.hdfs.server.balancer.TestBalancer类的典型用法代码示例。如果您正苦于以下问题:Java TestBalancer类的具体用法?Java TestBalancer怎么用?Java TestBalancer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TestBalancer类属于org.apache.hadoop.hdfs.server.balancer包,在下文中一共展示了TestBalancer类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEnd2End
import org.apache.hadoop.hdfs.server.balancer.TestBalancer; //导入依赖的package包/类
/**
* Integration testing of access token, involving NN, DN, and Balancer
*/
@Test
public void testEnd2End() throws Exception {
Configuration conf = new Configuration();
conf.setBoolean(DFSConfigKeys.DFS_BLOCK_ACCESS_TOKEN_ENABLE_KEY, true);
new TestBalancer().integrationTest(conf);
}
示例2: testEnd2End
import org.apache.hadoop.hdfs.server.balancer.TestBalancer; //导入依赖的package包/类
@Test
@Override
public void testEnd2End() throws Exception {
Configuration conf = new Configuration();
conf.setBoolean(DFSConfigKeys.DFS_BLOCK_ACCESS_TOKEN_ENABLE_KEY, true);
new TestBalancer().integrationTestWithStripedFile(conf);
}
示例3: testEnd2End
import org.apache.hadoop.hdfs.server.balancer.TestBalancer; //导入依赖的package包/类
public void testEnd2End() throws Exception {
Configuration conf = new Configuration();
conf.setBoolean(DFSConfigKeys.DFS_BLOCK_ACCESS_TOKEN_ENABLE_KEY, true);
new TestBalancer().integrationTest(conf);
}