Getting class is not whitelisted when I'm using on databricks
See original GitHub issueHi, I have installed the spark-nlp on databricks cluster. i was able to import it but when i try to use it it is throwing the error
from sparknlp.pretrained import PretrainedPipeline
explain_document_pipeline = PretrainedPipeline("explain_document_ml")
annotations = explain_document_pipeline.annotate("We are very happy about SparkNLP")
print(annotations)
py4j.security.Py4JSecurityException: Method public static java.lang.String com.johnsnowlabs.nlp.pretrained.PythonResourceDownloader.getDownloadSize(java.lang.String,java.lang.String,java.lang.String) is not whitelisted on class class com.johnsnowlabs.nlp.pretrained.PythonResourceDownloader
Any help is appreciated.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error running Spark on Databricks: constructor public XXX is ...
This error shows up with some library methods when using High Concurrency cluster with credential pass through enabled.
Read more >readStream() is not whitelisted error when running a query
You are trying to run a structured streaming query and get and error message. py4j.security.Py4JSecurityException: Method public org.apache.
Read more >Security exception while using Feature Store. How can I get ...
String org.apache.spark.api.java.JavaSparkContext.getLocalProperty(java.lang.String) is not whitelisted on class class org.apache.spark.api.java.
Read more >method public X is not whitelisted on class DataStreamReader
I want to import data using the autoloader from a S3 bucket into a table which ... String) is not whitelisted on class...
Read more >Can you help with this error please? Issue when using a new ...
Hello, I am trying to use MLFlow on a new high concurrency cluster but I get the error below. ... maxNumConcurrentTasks() is not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You didn’t share the screenshots I asked for, so I go with what I can say. This happens in Databricks under certain situations:
Problem:
Solution:
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days