Skip to content Skip to sidebar Skip to footer

Libraries Needed To Use Spark From Python (pyspark)

I am using PySpark from Django and connect to a spark master node using SparkSession to execute a job on the cluster. My question is do I need a full install of spark on my local m

Solution 1:

Although I have not tested it, as of Spark 2.1, PySpark is available from PyPi (for installation via pip) precisely for cases such as yours. 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.

NOTE: If you are using this with a Spark standalone cluster you must ensure that the version (including minor version) matches or you may experience odd errors

Post a Comment for "Libraries Needed To Use Spark From Python (pyspark)"