How to correctly install Spark NLP on Windows 8 and 10 #1022
Replies: 3 comments 4 replies
-
Thank you for this guide. Does sparknlp only work with Java version 8? Does it work with Java 15.0? Also is there a Docker container alternative to install sparknlp environment on a Windows machine? |
Beta Was this translation helpful? Give feedback.
-
Hi @cpoptic Apache Spark 2.3 and 2.4 require only Java 8 so that is one of the requirements. We don't officially provide a Docker container but it's pretty simple to make a Docker container based on Ubuntu or other Linux images as long as you set it up correctly. I'll make another post for Docker setup, not officially supported by us but it could be a good start. Update: Hope this could be a good start for setting up Docker container: #1714 |
Beta Was this translation helpful? Give feedback.
-
Something that I also had to add in order to successfully install Pyspark was to add the following environment variable
Otherwise, when I tried launching PySpark from the command line, it would always say that it is unable to find the python executable |
Beta Was this translation helpful? Give feedback.
-
The steps:
C:\java
Windows doesn't like space in the path.Either create a conda env for python 3.6, install
pyspark==2.4.6 spark-nlp numpy
and use Jupyter/python console, or in the same conda env you can go to spark bin forpyspark --packages com.johnsnowlabs.nlp:spark-nlp_2.11:2.5.5
.Beta Was this translation helpful? Give feedback.
All reactions