Package org.apache.accumulo.server
Class Accumulo
- java.lang.Object
-
- org.apache.accumulo.server.Accumulo
-
public class Accumulo extends Object
-
-
Constructor Summary
Constructors Constructor Description Accumulo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
abortIfFateTransactions()
Exit loudly if there are outstanding Fate operations.static boolean
canUpgradeFromDataVersion(int dataVersion)
Sanity check that the current persistent version is allowed to upgrade to the version of Accumulo running.static org.apache.hadoop.fs.Path
getAccumuloInstanceIdPath(VolumeManager fs)
static int
getAccumuloPersistentVersion(Volume v)
static int
getAccumuloPersistentVersion(VolumeManager fs)
static int
getAccumuloPersistentVersion(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
static void
init(VolumeManager fs, ServerConfigurationFactory serverConfig, String application)
static void
monitorSwappiness(AccumuloConfiguration config)
static boolean
persistentVersionNeedsUpgrade(int accumuloPersistentVersion)
Does the data version number stored in the backing Volumes indicate we need to upgrade something?static void
setupLogging(String application)
static void
updateAccumuloVersion(VolumeManager fs, int oldVersion)
static void
waitForZookeeperAndHdfs(VolumeManager fs)
-
-
-
Method Detail
-
updateAccumuloVersion
public static void updateAccumuloVersion(VolumeManager fs, int oldVersion)
-
getAccumuloPersistentVersion
public static int getAccumuloPersistentVersion(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
-
getAccumuloPersistentVersion
public static int getAccumuloPersistentVersion(Volume v)
-
getAccumuloPersistentVersion
public static int getAccumuloPersistentVersion(VolumeManager fs)
-
getAccumuloInstanceIdPath
public static org.apache.hadoop.fs.Path getAccumuloInstanceIdPath(VolumeManager fs)
-
setupLogging
public static void setupLogging(String application) throws UnknownHostException
- Throws:
UnknownHostException
-
init
public static void init(VolumeManager fs, ServerConfigurationFactory serverConfig, String application) throws IOException
- Throws:
IOException
-
canUpgradeFromDataVersion
public static boolean canUpgradeFromDataVersion(int dataVersion)
Sanity check that the current persistent version is allowed to upgrade to the version of Accumulo running.- Parameters:
dataVersion
- the version that is persisted in the backing Volumes
-
persistentVersionNeedsUpgrade
public static boolean persistentVersionNeedsUpgrade(int accumuloPersistentVersion)
Does the data version number stored in the backing Volumes indicate we need to upgrade something?
-
monitorSwappiness
public static void monitorSwappiness(AccumuloConfiguration config)
-
waitForZookeeperAndHdfs
public static void waitForZookeeperAndHdfs(VolumeManager fs)
-
abortIfFateTransactions
public static void abortIfFateTransactions()
Exit loudly if there are outstanding Fate operations. Since Fate serializes class names, we need to make sure there are no queued transactions from a previous version before continuing an upgrade. The status of the operations is irrelevant; those in SUCCESSFUL status cause the same problem as those just queued. Note that the Master should not allow write access to Fate until after all upgrade steps are complete. Should be called as a guard before performing any upgrade steps, after determining that an upgrade is needed. see ACCUMULO-2519
-
-