org.apache.hadoop.hbase.io
Class HLogLink
java.lang.Object
org.apache.hadoop.hbase.io.FileLink
org.apache.hadoop.hbase.io.HLogLink
@InterfaceAudience.Private
public class HLogLink
- extends FileLink
HLogLink describes a link to a WAL.
An hlog can be in /hbase/.logs//
or it can be in /hbase/.oldlogs/
The link checks first in the original path,
if it is not present it fallbacks to the archived path.
Constructor Summary |
HLogLink(org.apache.hadoop.conf.Configuration conf,
String serverName,
String logName)
|
HLogLink(org.apache.hadoop.fs.Path originPath,
org.apache.hadoop.fs.Path archivePath)
|
HLogLink(org.apache.hadoop.fs.Path rootDir,
String serverName,
String logName)
|
HLogLink
public HLogLink(org.apache.hadoop.conf.Configuration conf,
String serverName,
String logName)
throws IOException
- Parameters:
conf
- Configuration
from which to extract specific archive locationsserverName
- Region Server owner of the loglogName
- WAL file name
- Throws:
IOException
- on unexpected error.
HLogLink
public HLogLink(org.apache.hadoop.fs.Path rootDir,
String serverName,
String logName)
- Parameters:
rootDir
- Path to the root directory where hbase files are storedserverName
- Region Server owner of the loglogName
- WAL file name
HLogLink
public HLogLink(org.apache.hadoop.fs.Path originPath,
org.apache.hadoop.fs.Path archivePath)
- Parameters:
originPath
- Path to the wal in the log directoryarchivePath
- Path to the wal in the archived log directory
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.