Class WALLink

java.lang.Object
org.apache.hadoop.hbase.io.FileLink
org.apache.hadoop.hbase.io.WALLink

@Private public class WALLink extends FileLink
WALLink describes a link to a WAL. An wal can be in /hbase/.logs/<server>/<wal> or it can be in /hbase/.oldlogs/<wal> The link checks first in the original path, if it is not present it fallbacks to the archived path.
  • Constructor Details

    • WALLink

      public WALLink(org.apache.hadoop.conf.Configuration conf, String serverName, String logName) throws IOException
      Parameters:
      conf - Configuration from which to extract specific archive locations
      serverName - Region Server owner of the log
      logName - WAL file name
      Throws:
      IOException - on unexpected error.
    • WALLink

      public WALLink(org.apache.hadoop.fs.Path walRootDir, String serverName, String logName)
      Parameters:
      walRootDir - Path to the root directory where hbase files are stored
      serverName - Region Server owner of the log
      logName - WAL file name
    • WALLink

      public WALLink(org.apache.hadoop.fs.Path originPath, org.apache.hadoop.fs.Path archivePath)
      Parameters:
      originPath - Path to the wal in the log directory
      archivePath - Path to the wal in the archived log directory