public class WriteAheadLogUtils
extends Object
Constructor and Description |
---|
WriteAheadLogUtils() |
Modifier and Type | Method and Description |
---|---|
static WriteAheadLog |
createLogForDriver(SparkConf sparkConf,
String fileWalLogDirectory,
org.apache.hadoop.conf.Configuration fileWalHadoopConf)
Create a WriteAheadLog for the driver.
|
static WriteAheadLog |
createLogForReceiver(SparkConf sparkConf,
String fileWalLogDirectory,
org.apache.hadoop.conf.Configuration fileWalHadoopConf)
Create a WriteAheadLog for the receiver.
|
static int |
DEFAULT_MAX_FAILURES() |
static int |
DEFAULT_ROLLING_INTERVAL_SECS() |
static String |
DRIVER_WAL_BATCHING_CONF_KEY() |
static String |
DRIVER_WAL_BATCHING_TIMEOUT_CONF_KEY() |
static String |
DRIVER_WAL_CLASS_CONF_KEY() |
static String |
DRIVER_WAL_CLOSE_AFTER_WRITE_CONF_KEY() |
static String |
DRIVER_WAL_MAX_FAILURES_CONF_KEY() |
static String |
DRIVER_WAL_ROLLING_INTERVAL_CONF_KEY() |
static boolean |
enableReceiverLog(SparkConf conf) |
static long |
getBatchingTimeout(SparkConf conf)
How long we will wait for the wrappedLog in the BatchedWriteAheadLog to write the records
before we fail the write attempt to unblock receivers.
|
static int |
getMaxFailures(SparkConf conf,
boolean isDriver) |
static int |
getRollingIntervalSecs(SparkConf conf,
boolean isDriver) |
static boolean |
isBatchingEnabled(SparkConf conf,
boolean isDriver) |
static String |
RECEIVER_WAL_CLASS_CONF_KEY() |
static String |
RECEIVER_WAL_CLOSE_AFTER_WRITE_CONF_KEY() |
static String |
RECEIVER_WAL_ENABLE_CONF_KEY() |
static String |
RECEIVER_WAL_MAX_FAILURES_CONF_KEY() |
static String |
RECEIVER_WAL_ROLLING_INTERVAL_CONF_KEY() |
static boolean |
shouldCloseFileAfterWrite(SparkConf conf,
boolean isDriver) |
public static String RECEIVER_WAL_ENABLE_CONF_KEY()
public static String RECEIVER_WAL_CLASS_CONF_KEY()
public static String RECEIVER_WAL_ROLLING_INTERVAL_CONF_KEY()
public static String RECEIVER_WAL_MAX_FAILURES_CONF_KEY()
public static String RECEIVER_WAL_CLOSE_AFTER_WRITE_CONF_KEY()
public static String DRIVER_WAL_CLASS_CONF_KEY()
public static String DRIVER_WAL_ROLLING_INTERVAL_CONF_KEY()
public static String DRIVER_WAL_MAX_FAILURES_CONF_KEY()
public static String DRIVER_WAL_BATCHING_CONF_KEY()
public static String DRIVER_WAL_BATCHING_TIMEOUT_CONF_KEY()
public static String DRIVER_WAL_CLOSE_AFTER_WRITE_CONF_KEY()
public static int DEFAULT_ROLLING_INTERVAL_SECS()
public static int DEFAULT_MAX_FAILURES()
public static boolean enableReceiverLog(SparkConf conf)
public static int getRollingIntervalSecs(SparkConf conf, boolean isDriver)
public static int getMaxFailures(SparkConf conf, boolean isDriver)
public static boolean isBatchingEnabled(SparkConf conf, boolean isDriver)
public static long getBatchingTimeout(SparkConf conf)
conf
- (undocumented)public static boolean shouldCloseFileAfterWrite(SparkConf conf, boolean isDriver)
public static WriteAheadLog createLogForDriver(SparkConf sparkConf, String fileWalLogDirectory, org.apache.hadoop.conf.Configuration fileWalHadoopConf)
sparkConf
- (undocumented)fileWalLogDirectory
- (undocumented)fileWalHadoopConf
- (undocumented)public static WriteAheadLog createLogForReceiver(SparkConf sparkConf, String fileWalLogDirectory, org.apache.hadoop.conf.Configuration fileWalHadoopConf)
sparkConf
- (undocumented)fileWalLogDirectory
- (undocumented)fileWalHadoopConf
- (undocumented)