Spark Connect requirements for Cloudera AI

Spark Connect requirements for Cloudera AI define the protocol, network port configurations, security policies necessary to run Spark Connect using Cloudera Data Engineering.

The following configurations and features define the Spark Connect environment:

Secure Connectivity

  • Protocol – All communication uses the gRPC framework.

  • Port configuration – Network security groups must allow traffic from the Cloudera AI namespace to the Cloudera Data Engineering Virtual Cluster.

  • Zero-trust readiness – The connection is a standard service-to-service call, making it compatible with modern service meshes and experimental Kubernetes gateway features.

Inherited security

  • Unified policy definition Set your Fine-Grained Access Control (FGAC) policies are defined only once in Cloudera Data Engineering using Apache Ranger.

  • Automatic identity pass-through – When a Data Scientist connects using Spark Connect, the User Identity is automatically passed to the remote engine.

  • Global enforcement – The remote Spark engine enforces the configured user settings and rules across the environment.

Chainguard ML Runtimes

  • Chainguard ML Runtimes do not contain Spark binaries, reducing vulnerability.

Logging and monitoring

  • Centralized logging – Logs are available at Cloudera Data Engineering Spark History Server.

  • Resource efficiency – The Cloudera AI decoupled Spark Connect architecture reduces overall resource consumption.

Cloudera Data Engineering considerations

  • Resource utilization – Spark usage is measured as Cloudera Data Engineering consumption.

  • GPU workloads – For Spark-based preprocessing that require GPUs, you must configure the target Cloudera Data Engineering Virtual Cluster with GPU-enabled instance groups.

  • Version alignment – The Python version in the ML Runtime must match the Python version supported by the remote Spark engine to ensure reliable object serialization.