public class SparkStatsUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SPARK_INPUT_COUNTER_GROUP |
static java.lang.String |
SPARK_INPUT_RECORD_COUNTER |
static java.lang.String |
SPARK_STORE_COUNTER_GROUP |
static java.lang.String |
SPARK_STORE_RECORD_COUNTER |
Constructor and Description |
---|
SparkStatsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addFailedNativeJobStats(PigStats ps,
NativeSparkOperator nativeSparkOperator,
java.lang.Exception e) |
static void |
addFailJobStats(java.lang.String jobID,
POStore poStore,
SparkOperator sparkOperator,
SparkPigStats sparkPigStats,
java.lang.Exception e) |
static void |
addNativeJobStats(PigStats ps,
NativeSparkOperator nativeSparkOperator) |
static java.lang.String |
getCounterName(POLoad load) |
static java.lang.String |
getCounterName(POStore store) |
static long |
getRecordCount(POLoad load) |
static long |
getRecordCount(POStore store) |
static boolean |
isJobSuccess(int jobID,
JavaSparkContext sparkContext) |
static void |
waitForJobAddStats(int jobID,
POStore poStore,
SparkOperator sparkOperator,
JobStatisticCollector jobStatisticCollector,
JavaSparkContext sparkContext,
SparkPigStats sparkPigStats) |
public static final java.lang.String SPARK_STORE_COUNTER_GROUP
public static final java.lang.String SPARK_STORE_RECORD_COUNTER
public static final java.lang.String SPARK_INPUT_COUNTER_GROUP
public static final java.lang.String SPARK_INPUT_RECORD_COUNTER
public static void waitForJobAddStats(int jobID, POStore poStore, SparkOperator sparkOperator, JobStatisticCollector jobStatisticCollector, JavaSparkContext sparkContext, SparkPigStats sparkPigStats) throws java.lang.InterruptedException
java.lang.InterruptedException
public static void addFailJobStats(java.lang.String jobID, POStore poStore, SparkOperator sparkOperator, SparkPigStats sparkPigStats, java.lang.Exception e)
public static java.lang.String getCounterName(POStore store)
public static java.lang.String getCounterName(POLoad load)
public static long getRecordCount(POStore store)
public static long getRecordCount(POLoad load)
public static boolean isJobSuccess(int jobID, JavaSparkContext sparkContext)
public static void addNativeJobStats(PigStats ps, NativeSparkOperator nativeSparkOperator)
public static void addFailedNativeJobStats(PigStats ps, NativeSparkOperator nativeSparkOperator, java.lang.Exception e)
Copyright © 2007-2017 The Apache Software Foundation