Getting class is not whitelisted when I'm using on databricks

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maziyarpanahicommented, Mar 9, 2022

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:

  • you have some configs (or those are automatically set by that runtime) that conflict with HC cluster mode

Solution:

0reactions
github-actions[bot]commented, Aug 6, 2022

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found