Package org.apache.accumulo.server
Class ServerConstants
- java.lang.Object
-
- org.apache.accumulo.server.ServerConstants
-
public class ServerConstants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Set<Integer>
CAN_RUN
static int
CRYPTO_CHANGES
version (9) reflects changes to crypto that resulted in RFiles and WALs being serialized differently in version 2.0.0.static int
DATA_VERSION
Historic data versions version (7) also reflects the addition of a replication table in 1.7.0 version (6) reflects the addition of a separate root table (ACCUMULO-1481) in 1.6.0 - version (5) moves delete file markers for the metadata table into the root tablet version (4) moves logging to HDFS in 1.5.0static String
INSTANCE_ID_DIR
static Set<Integer>
NEEDS_UPGRADE
static String
RECOVERY_DIR
static int
SHORTEN_RFILE_KEYS
version (8) reflects changes to RFile index (ACCUMULO-1124) AND the change to WAL tracking in ZK in version 1.8.0static String
TABLE_DIR
static String
VERSION_DIR
static String
WAL_DIR
-
Constructor Summary
Constructors Constructor Description ServerConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
checkBaseUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf, String[] configuredBaseDirs, boolean ignore)
static String[]
getBaseUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf)
static String[]
getBaseUris(ServerContext context)
static org.apache.hadoop.fs.Path
getDataVersionLocation(Volume v)
static org.apache.hadoop.fs.Path
getInstanceIdLocation(Volume v)
static String[]
getRecoveryDirs(ServerContext context)
static String[]
getTablesDirs(ServerContext context)
static List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>>
getVolumeReplacements(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf)
-
-
-
Field Detail
-
VERSION_DIR
public static final String VERSION_DIR
- See Also:
- Constant Field Values
-
INSTANCE_ID_DIR
public static final String INSTANCE_ID_DIR
- See Also:
- Constant Field Values
-
CRYPTO_CHANGES
public static final int CRYPTO_CHANGES
version (9) reflects changes to crypto that resulted in RFiles and WALs being serialized differently in version 2.0.0. Also RFiles in 2.0.0 may have summary data.- See Also:
- Constant Field Values
-
SHORTEN_RFILE_KEYS
public static final int SHORTEN_RFILE_KEYS
version (8) reflects changes to RFile index (ACCUMULO-1124) AND the change to WAL tracking in ZK in version 1.8.0- See Also:
- Constant Field Values
-
DATA_VERSION
public static final int DATA_VERSION
Historic data versions- version (7) also reflects the addition of a replication table in 1.7.0
- version (6) reflects the addition of a separate root table (ACCUMULO-1481) in 1.6.0 -
- version (5) moves delete file markers for the metadata table into the root tablet
- version (4) moves logging to HDFS in 1.5.0
- See Also:
- Constant Field Values
-
TABLE_DIR
public static final String TABLE_DIR
- See Also:
- Constant Field Values
-
RECOVERY_DIR
public static final String RECOVERY_DIR
- See Also:
- Constant Field Values
-
WAL_DIR
public static final String WAL_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseUris
public static String[] getBaseUris(ServerContext context)
-
getBaseUris
public static String[] getBaseUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf)
-
checkBaseUris
public static String[] checkBaseUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf, String[] configuredBaseDirs, boolean ignore)
-
getTablesDirs
public static String[] getTablesDirs(ServerContext context)
-
getRecoveryDirs
public static String[] getRecoveryDirs(ServerContext context)
-
getInstanceIdLocation
public static org.apache.hadoop.fs.Path getInstanceIdLocation(Volume v)
-
getDataVersionLocation
public static org.apache.hadoop.fs.Path getDataVersionLocation(Volume v)
-
getVolumeReplacements
public static List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>> getVolumeReplacements(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf)
-
-