1   package eu.fbk.knowledgestore.datastore.hbase.utils;
2   
3   /**
4    * Class containing the default values for the HBase data store module.
5    */
6   public class HBaseConstants {
7   
8       public static final String HBASEDATASTORE_TABLEPREFIX_PROP = "hbasedatastore.tableprefix";
9       public static final String HBASEDATASTORE_TABLEPREFIX_DEFAULT = "nwr.";
10  
11      /** Default table name for resources. */
12      public static final String DEFAULT_RES_TAB_NAME = "resources";
13      public static final String DEFAULT_RES_FAM_NAME = "rf";
14      public static final String DEFAULT_RES_QUA_NAME = "r";
15  
16      /** Default table name for mentions. */
17      public static final String DEFAULT_MEN_TAB_NAME = "mentions";
18      public static final String DEFAULT_MEN_FAM_NAME = "mf";
19      public static final String DEFAULT_MEN_QUA_NAME = "m";
20  
21      /** Default table name for entities. */
22      public static final String DEFAULT_ENT_TAB_NAME = "entities";
23      public static final String DEFAULT_ENT_FAM_NAME = "ef";
24      public static final String DEFAULT_ENT_QUA_NAME = "e";
25  
26      /** Default table name for contexts. */
27      public static final String DEFAULT_CON_TAB_NAME = "contexts";
28      public static final String DEFAULT_CON_FAM_NAME = "cf";
29      public static final String DEFAULT_CON_QUA_NAME = "c";
30  
31      /** Default table name for users. */
32      public static final String DEFAULT_USR_TAB_NAME = "users";
33      public static final String DEFAULT_USR_FAM_NAME = "uf";
34      public static final String DEFAULT_USR_QUA_NAME = "u";
35  
36      /** Hadoop configuration parameters */
37      public static final String HADOOP_FS_DEFAULT_NAME = "fs.default.name";
38      public static final String HADOOP_FS_URL          = "fs.url";
39  
40      /** HBase configuration parameters */
41      public static final String HBASE_ZOOKEEPER_QUORUM = "hbase.zookeeper.quorum";
42      public static final String HBASE_ZOOKEEPER_CLIENT_PORT = "hbase.zookeeper.property.clientPort";
43      public static final String HBASEDATASTORE_SERVERFILTERFLAG = "hbasedatastore.serverfilterflag";
44  
45      /** HBase transactional layer property. */
46      public static final String HBASE_TRAN_LAYER = "hbase.transactional.layer";
47      /** HBase transactional layers options. */
48      public static final String TEPHRA_TRAN_LAYER_OPT = "tephra";
49      public static final String OMID_TRAN_LAYER_OPT = "omid";
50      public static final String NATIVE_TRAN_LAYER_OPT = "native";
51  
52      /** HBase properties to be loaded into regions. */
53      public static final String HBASE_REGION_COPROCESSOR_CLASSES = "hbase.coprocessor.region.classes";
54      public static final String HBASE_REGION_MEMSTORE_FLUSH_SIZE = "hbase.hregion.memstore.flush.size";
55      public static final String HBASE_REGION_NRESERVATION_BLOCKS = "hbase.regionserver.nbreservationblocks";
56  
57      /** OMID properties. */
58      public static final String OMID_TSO_HOST = "tso.host";
59      public static final String OMID_TSO_PORT = "tso.port";
60  
61      /** OMID options. */
62      public static final String OMID_REGIONSERVER_COMPACTER_OPT = "com.yahoo.omid.regionserver.Compacter";
63      public static final String OMID_TSO_DEFAULT_HOST_OPT = "hlt-services4";
64      public static final int OMID_REGION_MEMSTORE_FLUSH_SIZE_OPT = 100*1024;
65      public static final int OMID_REGION_NRESERVATION_BLOCKS_OPT = 1;
66      public static final int OMID_TSO_DEFAULT_PORT_OPT = 1234;
67  
68  
69      /** Default URIs dictionary file. */
70      public static final String URIDICT_RELATIVEPATH_PROP = "uris.dictionary.path";
71      public static final String URIDICT_RELATIVEPATH_DEFAULT = "tmp/ROL-ks/uri.dic";
72  }