Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshoot Itaipu jobs #16

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@

import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Stack;
import java.util.concurrent.atomic.AtomicBoolean;

import lombok.extern.slf4j.Slf4j;
import scala.Tuple2;

import org.apache.spark.scheduler.ActiveJob;
import org.apache.spark.scheduler.JobFailed;
import org.apache.spark.scheduler.SparkListenerApplicationEnd;
Expand Down Expand Up @@ -79,6 +83,13 @@ public SparkSQLExecutionContext(

@Override
public void start(SparkListenerSQLExecutionStart startEvent) {
log.info("SparkListenerSQLExecutionStart - executionId: {}", startEvent.executionId());
Tuple2<String,String>[] allConfs = olContext.getSparkContext().get().getConf().getAll();
for (Tuple2<String,String> conf : allConfs) {
log.info("SparkListenerSQLExecutionStart - conf: {}", conf.toString());
}
log.info("SparkListenerSQLExecutionStart - mapOfConfsFromContext: {}", olContext.getSparkSession().get().conf().getAll().toString());
log.info("SparkListenerSQLExecutionStart - event: {}", startEvent.toString());
if (log.isDebugEnabled()) {
log.debug("SparkListenerSQLExecutionStart - executionId: {}", startEvent.executionId());
}
Expand Down Expand Up @@ -110,12 +121,13 @@ public void start(SparkListenerSQLExecutionStart startEvent) {
.jobFacetsBuilder(getJobFacetsBuilder(olContext.getQueryExecution().get()))
.build());

log.debug("Posting event for start {}: {}", executionId, event);
log.info("Posting event for start {}: {}", executionId, OpenLineageClientUtils.toJson(event));
NuEventEmitter.emit(event, eventEmitter);
}

@Override
public void end(SparkListenerSQLExecutionEnd endEvent) {
log.info("SparkListenerSQLExecutionEnd - executionId: {}", endEvent.executionId());
if (log.isDebugEnabled()) {
log.debug("SparkListenerSQLExecutionEnd - executionId: {}", endEvent.executionId());
}
Expand Down Expand Up @@ -160,6 +172,7 @@ public void end(SparkListenerSQLExecutionEnd endEvent) {
if (log.isDebugEnabled()) {
log.debug("Posting event for end {}: {}", executionId, OpenLineageClientUtils.toJson(event));
}
log.info("Posting event for end {}: {}", executionId, OpenLineageClientUtils.toJson(event));
NuEventEmitter.emit(event, eventEmitter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public static boolean isDisabled(OpenLineageContext context, SparkListenerEvent
new DeltaEventFilter(context),
new DatabricksEventFilter(context),
new SparkNodesFilter(context),
new CreateViewFilter(context),
new AdaptivePlanEventFilter(context))
new CreateViewFilter(context))
.anyMatch(filter -> filter.isDisabled(event.getClass().cast(event)));
}

Expand Down
Loading