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

Fix Spark livy console artifacts uploading failure block start #4814

Merged
Merged
Changes from 1 commit
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 @@ -61,6 +61,7 @@

import static com.microsoft.azure.hdinsight.common.MessageInfoType.Debug;
import static com.microsoft.azure.hdinsight.common.MessageInfoType.Info;
import static com.microsoft.azure.hdinsight.common.MessageInfoType.Warning;
import static com.microsoft.azure.hdinsight.spark.common.log.SparkLogLine.TOOL;
import static java.lang.Thread.sleep;
import static rx.exceptions.Exceptions.propagate;
Expand Down Expand Up @@ -512,6 +513,14 @@ public Observable<Session> deploy() {
.doOnNext(uri -> ctrlSubject.onNext(
new SparkLogLine(TOOL, Info, "Uploaded to " + uri)))
.toList()
.onErrorResumeNext(err -> {
ctrlSubject.onNext(
new SparkLogLine(TOOL, Warning, "Failed to upload artifact: " + err));
ctrlSubject.onNext(
new SparkLogLine(TOOL, Warning, "Try to start interactive session without those artifacts dependency..."));

return Observable.empty();
})
.map(uploadedUris -> {
this.createParameters.uploadedArtifactsUris.addAll(uploadedUris);

Expand Down