public class SparkHadoopWriterUtils
extends Object
Constructor and Description |
---|
SparkHadoopWriterUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.mapred.JobID |
createJobID(java.util.Date time,
int id) |
static String |
createJobTrackerID(java.util.Date time) |
static org.apache.hadoop.fs.Path |
createPathFromString(String path,
org.apache.hadoop.mapred.JobConf conf) |
static scala.util.DynamicVariable<Object> |
disableOutputSpecValidation()
Allows for the
spark.hadoop.validateOutputSpecs checks to be disabled on a case-by-case
basis; see SPARK-4835 for more details. |
static scala.Tuple2<org.apache.spark.executor.OutputMetrics,scala.Function0<Object>> |
initHadoopOutputMetrics(TaskContext context) |
static boolean |
isOutputSpecValidationEnabled(SparkConf conf) |
static void |
maybeUpdateOutputMetrics(org.apache.spark.executor.OutputMetrics outputMetrics,
scala.Function0<Object> callback,
long recordsWritten) |
public static org.apache.hadoop.mapred.JobID createJobID(java.util.Date time, int id)
public static String createJobTrackerID(java.util.Date time)
public static org.apache.hadoop.fs.Path createPathFromString(String path, org.apache.hadoop.mapred.JobConf conf)
public static boolean isOutputSpecValidationEnabled(SparkConf conf)
public static scala.Tuple2<org.apache.spark.executor.OutputMetrics,scala.Function0<Object>> initHadoopOutputMetrics(TaskContext context)
public static void maybeUpdateOutputMetrics(org.apache.spark.executor.OutputMetrics outputMetrics, scala.Function0<Object> callback, long recordsWritten)
public static scala.util.DynamicVariable<Object> disableOutputSpecValidation()
spark.hadoop.validateOutputSpecs
checks to be disabled on a case-by-case
basis; see SPARK-4835 for more details.