cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Esteemed Contributor III
Esteemed Contributor III

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
Moderator
Moderator

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.