Supported application languages and versions

Analytic Engine Powered by Apache Spark supports different languages like Python, R and Scala with Spark.

+ Indicates that Spark 2.4 was removed in Cloud Pak for Data 4.0.7. You can only use Spark 2.4 if you are on a Cloud Pak for Data version prior to 4.0.7.

The following template IDs exist for the different languages and Spark versions.

Spark version/language Template ID
Spark 3.0 / Python 3.9, 3.8 or 3.7 spark-3.0.0-jaas-v2-cp4d-template
Spark 2.4 / Python 3.8 or 3.7 + spark-2.4.0-jaas-v2-cp4d-template
Spark 3.0 / Scala 2.12 spark-3.0.0-jaas-v2-cp4d-template
Spark 2.4 / Scala 2.11 + spark-2.4.0-jaas-v2-cp4d-template
Spark 3.0 / R 3.6 spark-3.0.0-jaas-v2-cp4d-template
Spark 2.4 / R 3.6 + spark-2.4.0-jaas-v2-cp4d-template

The following examples show you sample payloads for submitting Spark job for different languages and Spark versions. Insert the appropriate template ID for the language and Spark version you need.

Parent topic: Submitting Spark jobs