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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StringDeprecated.(package private) static StringDeprecated.static StringgetEncodedNodeName(ZKWatcher zkw, String filename) Deprecated.Gets the full path node name for the log file being split.static StringgetFileName(String node) Deprecated.static StringgetRescanNode(ZKWatcher zkw) Deprecated.static org.apache.hadoop.fs.PathgetSplitLogDir(org.apache.hadoop.fs.Path rootdir, String tmpname) Deprecated.static booleanisCorrupted(org.apache.hadoop.fs.Path rootdir, String logFileName, org.apache.hadoop.fs.FileSystem fs) Deprecated.static booleanisRescanNode(String name) Deprecated.static booleanisRescanNode(ZKWatcher zkw, String path) Deprecated.Checks if the given path represents a rescan node.static voidmarkCorrupted(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 theZKWatcherwhich 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
-