Skip to content

Commit

Permalink
throw exception for empty app info (#994)
Browse files Browse the repository at this point in the history
Signed-off-by: cindyyuanjiang <[email protected]>
  • Loading branch information
cindyyuanjiang authored May 7, 2024
1 parent 3f32990 commit fa5fbea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ class Profiler(hadoopConf: Configuration, appArgs: ProfileArgs, enablePB: Boolea

val collect = new CollectInformation(apps)
val appInfo = collect.getAppInfo
// Fail early to skip further processing
if (appInfo.isEmpty) {
throw new RuntimeException("Failed to process application because the " +
"eventlog does not contain any SparkListenerApplicationStart event")
}
val appLogPath = collect.getAppLogPath
val dsInfo = collect.getDataSourceInfo
val execInfo = collect.getExecutorInfo
Expand Down

0 comments on commit fa5fbea

Please sign in to comment.