1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.hadoop.hbase.mapreduce;
21
22 import org.apache.hadoop.hbase.HConstants;
23 import org.apache.hadoop.hbase.codec.KeyValueCodecWithTags;
24 import org.apache.hadoop.hbase.io.hfile.HFile;
25 import org.apache.hadoop.hbase.testclassification.LargeTests;
26 import org.apache.hadoop.hbase.coprocessor.CoprocessorHost;
27 import org.junit.BeforeClass;
28 import org.junit.experimental.categories.Category;
29
30 @Category(LargeTests.class)
31 public class TestLoadIncrementalHFilesUseSecurityEndPoint extends TestLoadIncrementalHFiles {
32
33 @BeforeClass
34 public static void setUpBeforeClass() throws Exception {
35 util.getConfiguration().setInt(LoadIncrementalHFiles.MAX_FILES_PER_REGION_PER_FAMILY,
36 MAX_FILES_PER_REGION_PER_FAMILY);
37 util.getConfiguration().set(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY,
38 "org.apache.hadoop.hbase.security.access.SecureBulkLoadEndpoint");
39
40 util.getConfiguration().set(HConstants.RPC_CODEC_CONF_KEY,
41 KeyValueCodecWithTags.class.getCanonicalName());
42
43 util.getConfiguration().setInt(HFile.FORMAT_VERSION_KEY, 3);
44
45 util.startMiniCluster();
46 setupNamespace();
47 }
48 }