Class ZKSplitLog
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKSplitLog
Deprecated.
since 2.4.0 and 3.0.0 replaced by procedure-based WAL splitting; see SplitWALManager.
Common methods and attributes used by SplitLogManager and SplitLogWorker running distributed
splitting of WAL logs.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static String
Deprecated.(package private) static String
Deprecated.static String
getEncodedNodeName
(ZKWatcher zkw, String filename) Deprecated.Gets the full path node name for the log file being split.static String
getFileName
(String node) Deprecated.static String
getRescanNode
(ZKWatcher zkw) Deprecated.static org.apache.hadoop.fs.Path
getSplitLogDir
(org.apache.hadoop.fs.Path rootdir, String tmpname) Deprecated.static boolean
isCorrupted
(org.apache.hadoop.fs.Path rootdir, String logFileName, org.apache.hadoop.fs.FileSystem fs) Deprecated.static boolean
isRescanNode
(String name) Deprecated.static boolean
isRescanNode
(ZKWatcher zkw, String path) Deprecated.Checks if the given path represents a rescan node.static void
markCorrupted
(org.apache.hadoop.fs.Path rootdir, String logFileName, org.apache.hadoop.fs.FileSystem fs) Deprecated.
-
Field Details
-
LOG
Deprecated.
-
-
Constructor Details
-
ZKSplitLog
private ZKSplitLog()Deprecated.
-
-
Method Details
-
getEncodedNodeName
Deprecated.Gets the full path node name for the log file being split. This method will url encode the filename.- Parameters:
zkw
- zk referencefilename
- log file name (only the basename)
-
getFileName
Deprecated. -
encode
Deprecated. -
decode
Deprecated. -
getRescanNode
Deprecated. -
isRescanNode
Deprecated.- Parameters:
name
- the last part in path- Returns:
- whether the node name represents a rescan node
-
isRescanNode
Deprecated.Checks if the given path represents a rescan node.- Parameters:
zkw
- reference to theZKWatcher
which also contains configuration and constantspath
- the absolute path, starts with '/'- Returns:
- whether the path represents a rescan node
-
getSplitLogDir
public static org.apache.hadoop.fs.Path getSplitLogDir(org.apache.hadoop.fs.Path rootdir, String tmpname) Deprecated. -
markCorrupted
public static void markCorrupted(org.apache.hadoop.fs.Path rootdir, String logFileName, org.apache.hadoop.fs.FileSystem fs) Deprecated. -
isCorrupted
public static boolean isCorrupted(org.apache.hadoop.fs.Path rootdir, String logFileName, org.apache.hadoop.fs.FileSystem fs) throws IOException Deprecated.- Throws:
IOException
-