Configuration

org.apache.spark.sql.connect.client.SparkConnectClient.Configuration
See theConfiguration companion object
case class Configuration(host: String, port: Int, useSsl: Boolean, token: Option[String], userId: Option[String], userName: Option[String], userAgent: String, sessionId: Option[String], metadata: Map[String, String], maxInboundMessageSize: Int, useReattachableExecute: Boolean, retryPolicies: Seq[RetryPolicy], rpcDeadlines: RpcDeadlines, maxRetryExceptionElapsedTime: FiniteDuration, grpcKeepAliveEnabled: Boolean, grpcKeepAliveTimeMs: Long, grpcKeepAliveTimeoutMs: Long, grpcKeepAliveWithoutCalls: Boolean)

Immutable connection configuration. Construct via Builder or Builder.connectionString.

The keepalive settings make the client send HTTP/2 PINGs so a connection that silently died (e.g. a NAT gateway dropped it) fails with UNAVAILABLE instead of hanging; they default to Apache Spark 4.3's values (enabled, 60s, 20s, also without calls).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def toChannel: ManagedChannel

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product