public class SparkStatsUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SPARK_INPUT_COUNTER_GROUP |
static String |
SPARK_INPUT_RECORD_COUNTER |
static String |
SPARK_STORE_COUNTER_GROUP |
static String |
SPARK_STORE_RECORD_COUNTER |
Constructor and Description |
---|
SparkStatsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addFailedNativeJobStats(PigStats ps,
NativeSparkOperator nativeSparkOperator,
Exception e) |
static void |
addFailJobStats(String jobID,
POStore poStore,
SparkOperator sparkOperator,
SparkPigStats sparkPigStats,
Exception e) |
static void |
addNativeJobStats(PigStats ps,
NativeSparkOperator nativeSparkOperator) |
static String |
getCounterName(POLoad load) |
static 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,
JobMetricsListener jobMetricsListener,
JavaSparkContext sparkContext,
SparkPigStats sparkPigStats) |
public static final String SPARK_STORE_COUNTER_GROUP
public static final String SPARK_STORE_RECORD_COUNTER
public static final String SPARK_INPUT_COUNTER_GROUP
public static final String SPARK_INPUT_RECORD_COUNTER
public static void waitForJobAddStats(int jobID, POStore poStore, SparkOperator sparkOperator, JobMetricsListener jobMetricsListener, JavaSparkContext sparkContext, SparkPigStats sparkPigStats) throws InterruptedException
InterruptedException
public static void addFailJobStats(String jobID, POStore poStore, SparkOperator sparkOperator, SparkPigStats sparkPigStats, Exception e)
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, Exception e)
Copyright © 2007-2017 The Apache Software Foundation