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:ย 

Constructor public org.apache.spark.ml.feature.Bucketizer(java.lang.String) is not whitelisted.

Nathant93
New Contributor III

Hi,

I am getting the error Constructor public org.apache.spark.ml.feature.Bucketizer(java.lang.String) is not whitelisted. when using a serverless compute cluster. I have seen in some other articles that this is due to high concurrency - does anyone know a way around this while still using a serverless compute cluster?

Thanks

1 REPLY 1

Walter_C
Databricks Employee
Databricks Employee

The error you're encountering, "Constructor public org.apache.spark.ml.feature.Bucketizer(java.lang.String) is not whitelisted", typically arises when using a shared mode cluster. This is because Spark ML is not supported in shared clusters due to security reasons. Some Spark ML calls are restricted and whitelisting all classes is not feasible for security reasons.

The solution is to use a Single User cluster, but as of now the Serverless cluster is designed in Shared Access mode and cannot be modified

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group