-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Py4JJavaError: An error occurred while calling z:com.johnsnowlabs.util.start.registerListenerAndStartRefresh. : java.net.SocketTimeoutException: connect timed out #10
Comments
I forgot to mention I have a trial Healthcare license. |
@uzairahmadxy can you share the full error trace from the notebook and also check your jupyter shell for any errors and share those? |
Hi @C-K-Loan. Here's the additional information |
Thank you for sharing @uzairahmadxy |
Hi @C-K-Loan I re-installed everything using the instructions. It still throws the error (note: I don't see the Hadoop utils error now in the jupyter kernel though). |
Nice that's one less error! https://github.com/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/Certification_Trainings/Public/1.SparkNLP_Basics.ipynb Also could you copy paste the entire error trace you get here or https://pastebin.com/ |
Hi @C-K-Loan This is for the healthcare notebook kernel (https://pastebin.com/cV6ymZvR) Also, the training notebook doesn't run. Here are the traces for the open source notebook:
|
Thank you for sharing @uzairahmadxy Looks like the jar loaded into you spark session is missing some classes. @uzairahmadxy Then instead of spark = SparkSession.builder \
.appName("Spark NLP")\
.master("local[*]")\
.config("spark.driver.memory","16G")\
.config("spark.driver.maxResultSize", "0") \
.config("spark.kryoserializer.buffer.max", "2000M")\
.config("spark.jars", "path/to/the/spark-nlp.jar")\
.getOrCreate() Maybe this is a Windows Specific bug, I think @josejuanmartinez is on Windows have you maybe seen this? |
Hey I am not on Windows anymore sorry |
Thanks @C-K-Loan. Manually loading the jar worked for the basic spark nlp. I guess the same will have to be done for using the healthcare library as well. Can you please share where I can get these from? |
Hi @uzairahmadxy, great good to know that this works and sorry for the bug to get the healthcare jar : @Meryem1425 can you see if you run into the same issue on Windows? |
Thank you for sharing @C-K-Loan While the jars are loaded, the problem still persists as I want to load pretrained healthcare models/pipelines. Error Trace: https://pastebin.com/xtkJKVLk Side note: In order to manually download the healthcare model from the models hub, I'm assuming I have to specify the secret. How do we do download that? |
Can you test if your license is valid by running it on this notebook? Can you share the last versions you used? if you want to download manually? you can use this script, and in this notebook there is same example
|
The license works on notebook (tried on Collab). Here are the versions used:
|
I followed https://nlp.johnsnowlabs.com/docs/en/install#windows-support that website @uzairahmadxy. I set up correctly. I didn't any bug. Please make sure all stage apply correctly. You have to create java folder, spark folder, hadoop folder and tmp folder under the C folder. And then you have to make sure about set environment variable. Look at stage number 4 and 5. Could you delete all things and then follow installation step? Thank you |
@uzairahmadxy I notice you are using openJDK, but Adopt OpenJDK is recommended, |
Hi guys. I'm trying to run spark NLP for healthcare locally and I seem to have the compatible versions of spark/java but it still throws an error (screenshots attached).
Anyone face this?
The text was updated successfully, but these errors were encountered: