Skip to content
Closed
Changes from all commits
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 @@ -17,13 +17,13 @@

package org.apache.spark.sql.connect.service

import java.net.InetSocketAddress

import scala.collection.convert.ImplicitConversions._

import org.apache.spark.SparkThrowable
import org.apache.spark.internal.Logging
import org.apache.spark.sql.SparkSession

import java.net.InetSocketAddress
import scala.collection.convert.ImplicitConversions._

/**
* The Spark Connect server
*/
Expand All @@ -43,7 +43,15 @@ object SparkConnectServer extends Logging {
}
} catch {
case e: Exception =>
logError("Error starting Spark Connect server", e)
e.getCause match {
case sparkThrowable: SparkThrowable if (sparkThrowable.getErrorClass != null) =>
logError(
"Error starting Spark Connect server with error class "
+ sparkThrowable.getErrorClass,
e)
case _ =>
logError("Error starting Spark Connect server", e)
}
System.exit(-1)
}
SparkConnectService.server.awaitTermination()
Expand Down