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: 

Issue while reading data from Kafka topic to Spark strutured streaming

ramravi
Contributor II

py4j.security.Py4JSecurityException: Method public org.apache.spark.sql.streaming.DataStreamReader org.apache.spark.sql.SQLContext.readStream() is not whitelisted on class class org.apache.spark.sql.SQLContext

I already disable acl for cluster using

"spark.databricks.acl.dfAclsEnabled":true at cluster configuration.

Also Table access control disables for workspace.

I followed this link but not helping

https://kb.databricks.com/streaming/readstream-is-not-whitelisted.html

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

Don't you have some policies set by the administrator?

Additionally, when starting the cluster, please choose "Access mode" = "Single user".

Debayan
Databricks Employee
Databricks Employee

Hi, Streaming is not supported in credentials passthrough, table ACLS or HC clusters, which is not the case here as you mentioned those options are already disabled. Could you please crosscheck and raise a support case with Databricks if everything looks fine from your end?

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Ravi Teja​,

Just a friendly follow-up. Do you still need help? if you do, please share more details, like DBR version, standard or High concurrency cluster? etc

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