I just installed pyspark 2.2.0 using conda (using python v3.6 on windows 7 64bit, java v1.8)
$conda install pyspark
It downloaded and seemed to install correctly with no errors. Now when I run pyspark
on the command line, it just tells me "The system cannot find the path specified."
$pyspark
The system cannot find the path specified.
The system cannot find the path specified.
I tried including the pyspark path directory in my PATH environment variables, but that still didn't seem to work, but maybe I am giving the wrong path? Can anyone please advise. Does the Java path need to be specified in PATH environment variables or something? Thanks
PySpark from PyPi (i.e. installed with pip
or conda
) does not contain the full PySpark functionality; it is only intended for use with a Spark installation in an already existing cluster, in which case you might want to avoid downloading the whole Spark distribution. From the docs:
The Python packaging for Spark is not intended to replace all of the other use cases. This Python packaged version of Spark is suitable for interacting with an existing cluster (be it Spark standalone, YARN, or Mesos) - but does not contain the tools required to setup your own standalone Spark cluster. You can download the full version of Spark from the Apache Spark downloads page.
If you intend to work in the PySpark shell, I suggest you download Spark as said above (PySpark is an essential component of it).