Spark2 Thrift Server

Limitation Overview

Spark2 Thrift Server requires JDK 1.8 (Java 8) and is not compatible with JDK 11 or higher versions.

Description

Apache Spark 2.x components, including the Spark2 Thrift Server, were designed and tested exclusively with JDK 1.8. These components will fail to start or exhibit undefined behavior when running on JDK 11 or newer Java versions.

In cluster environments where the default Java version is JDK 11+, Spark2 Thrift Server must be explicitly configured to use JDK 1.8 to function properly.

Error Traces:

Bash
Copy

Workaround

Solution

Configure Spark2 to use JDK 1.8 while allowing the rest of the cluster to use JDK 11+.

Configuration Location: Ambari UI → Spark2 → Configs → Advanced spark2-env

Required Setting:

Bash
Copy

Action: Save the configuration and restart the Spark2 service.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated