diff --git a/core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/Profiler.scala b/core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/Profiler.scala index 37fbdd6b2..f87474eef 100644 --- a/core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/Profiler.scala +++ b/core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/Profiler.scala @@ -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