External IDE connectivity through Spark Connect-based sessions

You can learn about external IDE Spark Connect sessions and their known limitations.

What an external IDE Spark Connect session is

A session is an interactive short-lived development environment for running Spark commands. A Spark Connect Session is a type of Cloudera Data Engineering Session that exposes the Spark Connect interface. A Spark Connect Session allows you to connect to Spark from any remote Python or Java environment.

Limitations

Spark Connect Sessions do not support the following:
  • Profile support: Spark Connect does not support profiles in the configuration files even though the Cloudera Data Engineering clients support "Profiles" in the configuration files.
  • Access control support: Spark Connect Sessions do not support access control. After a session is created, only the user that created the session can interact with it.
  • PySpark: Spark Connect supports most PySpark APIs, including DataFrame, Functions, and Column. Some APIs, such as SparkContext and RDD are not supported. You can check which APIs are currently supported in the Apache Spark API Reference documentation. Supported APIs are labeled "Supports Spark Connect", so before migrating existing code to Spark Connect, you can check whether the APIs you are using are available. For more information, see the Apache Spark documentation.
  • Scala: Spark Connect supports most Scala APIs, including Dataset, functions, Column, Catalog, and KeyValueGroupedDataset. For more information, see the Apache Spark documentation.
  • User-Defined Functions are supported, by default, for the shell and in standalone applications.
  • The majority of the Streaming API is supported, including DataStreamReader, DataStreamWriter, StreamingQuery, and StreamingQueryListener. For more information, see the Apache Spark documentation.
  • APIs, such as SparkContext and RDD are deprecated in all Spark Connect versions.