Package org.apache.spark.scheduler
Interface StructuredStreamingIdAwareSchedulerLogging
- All Superinterfaces:
org.apache.spark.internal.Logging
public interface StructuredStreamingIdAwareSchedulerLogging
extends org.apache.spark.internal.Logging
A logging trait for scheduler components where log messages should include
structured streaming identifiers (query ID and batch ID).
Streaming execution sets these identifiers via
SparkContext.setLocalProperty(java.lang.String, java.lang.String), which is thread-local.
Scheduler code typically runs on a different thread (e.g. the
task-scheduler-event-loop-worker), so getLocalProperty would not have
the streaming context. This trait instead reads the identifiers from the
task's Properties, which are propagated with the
TaskSet across thread boundaries.
Mix this trait into any scheduler component that has access to task properties and needs streaming-aware log output.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidlogDebug(org.apache.spark.internal.LogEntry entry) voidvoidvoidvoidlogError(org.apache.spark.internal.LogEntry entry) voidvoidvoidvoidlogInfo(org.apache.spark.internal.LogEntry entry) voidvoidvoidvoidlogTrace(org.apache.spark.internal.LogEntry entry) voidvoidvoidvoidlogWarning(org.apache.spark.internal.LogEntry entry) voidlogWarning(org.apache.spark.internal.LogEntry entry, Throwable t) voidlogWarning(scala.Function0<String> msg) voidlogWarning(scala.Function0<String> msg, Throwable t) booleanintMethods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logName, LogStringContext, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
-
Method Details
-
properties
Properties properties() -
streamingIdAwareLoggingEnabled
boolean streamingIdAwareLoggingEnabled() -
streamingQueryIdLength
int streamingQueryIdLength() -
logInfo
- Specified by:
logInfoin interfaceorg.apache.spark.internal.Logging
-
logInfo
void logInfo(org.apache.spark.internal.LogEntry entry) - Specified by:
logInfoin interfaceorg.apache.spark.internal.Logging
-
logInfo
- Specified by:
logInfoin interfaceorg.apache.spark.internal.Logging
-
logInfo
- Specified by:
logInfoin interfaceorg.apache.spark.internal.Logging
-
logWarning
- Specified by:
logWarningin interfaceorg.apache.spark.internal.Logging
-
logWarning
void logWarning(org.apache.spark.internal.LogEntry entry) - Specified by:
logWarningin interfaceorg.apache.spark.internal.Logging
-
logWarning
- Specified by:
logWarningin interfaceorg.apache.spark.internal.Logging
-
logWarning
- Specified by:
logWarningin interfaceorg.apache.spark.internal.Logging
-
logDebug
- Specified by:
logDebugin interfaceorg.apache.spark.internal.Logging
-
logDebug
void logDebug(org.apache.spark.internal.LogEntry entry) - Specified by:
logDebugin interfaceorg.apache.spark.internal.Logging
-
logDebug
- Specified by:
logDebugin interfaceorg.apache.spark.internal.Logging
-
logDebug
- Specified by:
logDebugin interfaceorg.apache.spark.internal.Logging
-
logError
- Specified by:
logErrorin interfaceorg.apache.spark.internal.Logging
-
logError
void logError(org.apache.spark.internal.LogEntry entry) - Specified by:
logErrorin interfaceorg.apache.spark.internal.Logging
-
logError
- Specified by:
logErrorin interfaceorg.apache.spark.internal.Logging
-
logError
- Specified by:
logErrorin interfaceorg.apache.spark.internal.Logging
-
logTrace
- Specified by:
logTracein interfaceorg.apache.spark.internal.Logging
-
logTrace
void logTrace(org.apache.spark.internal.LogEntry entry) - Specified by:
logTracein interfaceorg.apache.spark.internal.Logging
-
logTrace
- Specified by:
logTracein interfaceorg.apache.spark.internal.Logging
-
logTrace
- Specified by:
logTracein interfaceorg.apache.spark.internal.Logging
-