org.apache.hadoop.hbase.regionserver.wal
Class HLogFileSystem

java.lang.Object
  extended by org.apache.hadoop.hbase.HBaseFileSystem
      extended by org.apache.hadoop.hbase.regionserver.wal.HLogFileSystem

public class HLogFileSystem
extends HBaseFileSystem

Acts as an abstraction between the HLog and the underlying filesystem. This is analogous to the HRegionFileSystem class.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class org.apache.hadoop.hbase.HBaseFileSystem
hdfsClientRetriesNumber
 
Constructor Summary
HLogFileSystem(org.apache.hadoop.conf.Configuration conf)
          In order to handle NN connectivity hiccups, one need to retry non-idempotent operation at the client level.
 
Method Summary
 HLog.Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path hlogFile)
          Creates writer for the given path.
 
Methods inherited from class org.apache.hadoop.hbase.HBaseFileSystem
createNewFileOnFileSystem, createPathOnFileSystem, createPathWithPermsOnFileSystem, deleteDirFromFileSystem, deleteFileFromFileSystem, makeDirOnFileSystem, renameAndSetModifyTime, renameDirForFileSystem, setRetryCounts, sleepBeforeRetry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

HLogFileSystem

public HLogFileSystem(org.apache.hadoop.conf.Configuration conf)
In order to handle NN connectivity hiccups, one need to retry non-idempotent operation at the client level.

Method Detail

createWriter

public HLog.Writer createWriter(org.apache.hadoop.fs.FileSystem fs,
                                org.apache.hadoop.conf.Configuration conf,
                                org.apache.hadoop.fs.Path hlogFile)
                         throws IOException
Creates writer for the given path.

Parameters:
fs -
conf -
hlogFile -
Returns:
an init'ed writer for the given path.
Throws:
IOException


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.