1. SparkSession maybe failed when initialize ExternalCatalog at sometime. As SparkSession call SharedState.reflect to instance an ExternalCatalog, any exception happened during this process will wrapped by InvocationTargetException.
└──the indeed Exception
2. org.apache.livy.rsc.Utils.stackTraceAsString only keep IllegalArgumentException's stackTrace but discard the indeed Exception's stackTrace and message, which makes the final java.util.concurrent.ExecutionException's message ambiguous.