Package org.apache.spark.scheduler
Class StatsReportListener
Object
org.apache.spark.scheduler.SparkListener
org.apache.spark.scheduler.StatsReportListener
- All Implemented Interfaces:
org.apache.spark.internal.Logging,SparkListenerInterface
:: DeveloperApi ::
Simple SparkListener that logs a few summary statistics when each stage completes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic scala.Option<org.apache.spark.util.Distribution>extractDoubleDistribution(scala.collection.immutable.Seq<scala.Tuple2<TaskInfo, org.apache.spark.executor.TaskMetrics>> taskInfoMetrics, scala.Function2<TaskInfo, org.apache.spark.executor.TaskMetrics, Object> getMetric) static scala.Option<org.apache.spark.util.Distribution>extractLongDistribution(scala.collection.immutable.Seq<scala.Tuple2<TaskInfo, org.apache.spark.executor.TaskMetrics>> taskInfoMetrics, scala.Function2<TaskInfo, org.apache.spark.executor.TaskMetrics, Object> getMetric) static longhours()static org.apache.spark.internal.Logging.LogStringContextLogStringContext(scala.StringContext sc) static StringmillisToString(long ms) Reformat a time interval in milliseconds to a prettier format for outputstatic longminutes()voidonStageCompleted(SparkListenerStageCompleted stageCompleted) Called when a stage completes successfully or fails, with information on the completed stage.voidonTaskEnd(SparkListenerTaskEnd taskEnd) Called when a task endsstatic org.slf4j.Loggerstatic voidorg$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) static int[]static Stringstatic double[]static longseconds()static voidshowBytesDistribution(String heading, org.apache.spark.util.Distribution dist) static voidshowBytesDistribution(String heading, scala.Function2<TaskInfo, org.apache.spark.executor.TaskMetrics, Object> getMetric, scala.collection.immutable.Seq<scala.Tuple2<TaskInfo, org.apache.spark.executor.TaskMetrics>> taskInfoMetrics) static voidshowBytesDistribution(String heading, scala.Option<org.apache.spark.util.Distribution> dOpt) static voidshowDistribution(String heading, String format, scala.Function2<TaskInfo, org.apache.spark.executor.TaskMetrics, Object> getMetric, scala.collection.immutable.Seq<scala.Tuple2<TaskInfo, org.apache.spark.executor.TaskMetrics>> taskInfoMetrics) static voidshowDistribution(String heading, org.apache.spark.util.Distribution d, scala.Function1<Object, String> formatNumber) static voidshowDistribution(String heading, scala.Option<org.apache.spark.util.Distribution> dOpt, String format) static voidshowDistribution(String heading, scala.Option<org.apache.spark.util.Distribution> dOpt, scala.Function1<Object, String> formatNumber) static voidshowMillisDistribution(String heading, scala.Function2<TaskInfo, org.apache.spark.executor.TaskMetrics, Object> getMetric, scala.collection.immutable.Seq<scala.Tuple2<TaskInfo, org.apache.spark.executor.TaskMetrics>> taskInfoMetrics) static voidshowMillisDistribution(String heading, scala.Option<org.apache.spark.util.Distribution> dOpt) Methods inherited from class org.apache.spark.scheduler.SparkListener
onApplicationEnd, onApplicationStart, onBlockManagerAdded, onBlockManagerRemoved, onBlockUpdated, onEnvironmentUpdate, onExecutorAdded, onExecutorBlacklisted, onExecutorBlacklistedForStage, onExecutorExcluded, onExecutorExcludedForStage, onExecutorMetricsUpdate, onExecutorRemoved, onExecutorUnblacklisted, onExecutorUnexcluded, onJobEnd, onJobStart, onNodeBlacklisted, onNodeBlacklistedForStage, onNodeExcluded, onNodeExcludedForStage, onNodeUnblacklisted, onNodeUnexcluded, onOtherEvent, onResourceProfileAdded, onSpeculativeTaskSubmitted, onStageExecutorMetrics, onStageSubmitted, onTaskGettingResult, onTaskStart, onUnpersistRDD, onUnschedulableTaskSetAdded, onUnschedulableTaskSetRemovedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
-
Constructor Details
-
StatsReportListener
public StatsReportListener()
-
-
Method Details
-
percentiles
public static int[] percentiles() -
probabilities
public static double[] probabilities() -
percentilesHeader
-
extractDoubleDistribution
-
extractLongDistribution
-
showDistribution
-
showDistribution
-
showDistribution
-
showDistribution
-
showBytesDistribution
-
showBytesDistribution
public static void showBytesDistribution(String heading, scala.Option<org.apache.spark.util.Distribution> dOpt) -
showBytesDistribution
-
showMillisDistribution
public static void showMillisDistribution(String heading, scala.Option<org.apache.spark.util.Distribution> dOpt) -
showMillisDistribution
-
seconds
public static long seconds() -
minutes
public static long minutes() -
hours
public static long hours() -
millisToString
Reformat a time interval in milliseconds to a prettier format for output- Parameters:
ms- (undocumented)- Returns:
- (undocumented)
-
org$apache$spark$internal$Logging$$log_
public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_() -
org$apache$spark$internal$Logging$$log__$eq
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) -
LogStringContext
public static org.apache.spark.internal.Logging.LogStringContext LogStringContext(scala.StringContext sc) -
onTaskEnd
Description copied from interface:SparkListenerInterfaceCalled when a task ends- Specified by:
onTaskEndin interfaceSparkListenerInterface- Overrides:
onTaskEndin classSparkListener- Parameters:
taskEnd- (undocumented)
-
onStageCompleted
Description copied from interface:SparkListenerInterfaceCalled when a stage completes successfully or fails, with information on the completed stage.- Specified by:
onStageCompletedin interfaceSparkListenerInterface- Overrides:
onStageCompletedin classSparkListener- Parameters:
stageCompleted- (undocumented)
-