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 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 void |
org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) |
static org.slf4j.Logger |
org$apache$spark$internal$Logging$$log_() |
static boolean |
shouldCloseFileAfterWrite(SparkConf conf,
boolean isDriver) |
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)public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_()
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1)