cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

spark throws error while using [NOT_IMPLEMENTED] rdd is not implemented.

mh7
New Contributor II

i am running code in 15.4lts and it works fine in all purpose cluster.

processed_counts = df.rdd.mapPartitions(process_partition).reduce(lambda x, y: x + y)

when i run the same code using job cluster, it throw's below error. I verfied the cluster setting and it is fine in both the case.

[NOT_IMPLEMENTED] rdd is not implemented.
--------------------------------------------------------------------------- PySparkNotImplementedError Traceback (most recent call last)  line 150 147 print(f"after repartition {df.count()} rows.") 149 150 processed_counts = df.rdd.mapPartitions(process_partition).reduce(lambda x, y: x + y)
3 REPLIES 3

Walter_C
Databricks Employee
Databricks Employee

The error you are encountering, [NOT_IMPLEMENTED] rdd is not implemented, is due to the fact that RDD APIs are not supported in certain cluster configurations, specifically in shared clusters or job clusters with certain access modes. Please try the same in single user cluster

mh7
New Contributor II

Thank you for the response.

As mentioned, it is working fine in the all-purpose compute. Does this mean that I should not use RDD APIs in a job cluster?
below is my all purpose compute config

"autotermination_minutes": 60,
"enable_elastic_disk": true,
"init_scripts": [],
"single_user_name": "user:mh@dmpa.com",
"enable_local_disk_encryption": false,
"data_security_mode": "SINGLE_USER",
"runtime_engine": "PHOTON",
"effective_spark_version": "15.4.x-photon-scala2.12",
"assigned_principal": "user:mh@dmpa.com",
"cluster_id": "19gu786758qhhjajiiusatu"

Walter_C
Databricks Employee
Databricks Employee

Ok, but your all purpose cluster is set up with Single User mode which is indeed supported for the RDD, can you confirm your job cluster is also created by using Single user mode?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now