1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.hadoop.hbase.client;
19
20 import org.apache.commons.logging.Log;
21 import org.apache.commons.logging.LogFactory;
22 import org.apache.hadoop.conf.Configuration;
23 import org.apache.hadoop.hbase.mob.MobConstants;
24 import org.apache.hadoop.hbase.snapshot.MobSnapshotTestingUtils;
25 import org.apache.hadoop.hbase.testclassification.LargeTests;
26 import org.junit.BeforeClass;
27 import org.junit.experimental.categories.Category;
28
29
30
31
32
33
34
35 @Category({LargeTests.class})
36 public class TestMobSnapshotFromClient extends TestSnapshotFromClient {
37 private static final Log LOG = LogFactory.getLog(TestMobSnapshotFromClient.class);
38
39
40
41
42
43 @BeforeClass
44 public static void setupCluster() throws Exception {
45 setupConf(UTIL.getConfiguration());
46 UTIL.startMiniCluster(NUM_RS);
47 }
48
49 protected static void setupConf(Configuration conf) {
50 TestSnapshotFromClient.setupConf(conf);
51 conf.setInt(MobConstants.MOB_FILE_CACHE_SIZE_KEY, 0);
52 }
53
54 @Override
55 protected void createTable() throws Exception {
56 MobSnapshotTestingUtils.createMobTable(UTIL, TABLE_NAME, getNumReplicas(), TEST_FAM);
57 }
58 }