Skip to content

Commit

Permalink
Add Spark run configuration pop up for Artifact selection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wezhang committed Oct 30, 2018
1 parent 776e780 commit 64aa3a1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ private void checkSubmissionConfiguration() throws RuntimeConfigurationException
"The specified local artifact path %s doesn't exist", parameter.getLocalArtifactPath()));
}

if (!getSubmitModel().getArtifactPath().isPresent()) {
throw new RuntimeConfigurationError(String.format(
"No artifact selected or selected artifact %s is gone.", getSubmitModel().getArtifactName()));
}

if (StringUtils.isBlank(parameter.getMainClassName())) {
throw new RuntimeConfigurationError("The main class name should not be empty");
}
Expand Down

0 comments on commit 64aa3a1

Please sign in to comment.