Package org.apache.accumulo.server.fs
Class VolumeUtil
java.lang.Object
org.apache.accumulo.server.fs.VolumeUtil
Utility methods for managing absolute URIs contained in Accumulo metadata.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
removeTrailingSlash
(String path) static org.apache.hadoop.fs.Path
removeTrailingSlash
(org.apache.hadoop.fs.Path path) static org.apache.hadoop.fs.Path
switchVolume
(String path, VolumeManager.FileType ft, List<Pair<org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path>> replacements) protected static LogEntry
switchVolumes
(LogEntry le, List<Pair<org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path>> replacements) static VolumeUtil.TabletFiles
updateTabletVolumes
(ServerContext context, ServiceLock zooLock, KeyExtent extent, VolumeUtil.TabletFiles tabletFiles, boolean replicate) This method does two things.
-
Constructor Details
-
VolumeUtil
public VolumeUtil()
-
-
Method Details
-
removeTrailingSlash
-
removeTrailingSlash
public static org.apache.hadoop.fs.Path removeTrailingSlash(org.apache.hadoop.fs.Path path) -
switchVolume
public static org.apache.hadoop.fs.Path switchVolume(String path, VolumeManager.FileType ft, List<Pair<org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path>> replacements) -
switchVolumes
-
updateTabletVolumes
public static VolumeUtil.TabletFiles updateTabletVolumes(ServerContext context, ServiceLock zooLock, KeyExtent extent, VolumeUtil.TabletFiles tabletFiles, boolean replicate) This method does two things. First, it switches any volumes a tablet is using that are configured in instance.volumes.replacements. Second, if a tablet dir is no longer configured for use it chooses a new tablet directory.
-