No module named 'resource' installing Apache Spark on Windows

前端 未结 4 2059
谎友^
谎友^ 2020-12-25 08:17

I am trying to install apache spark to run locally on my windows machine. I have followed all instructions here https://medium.com/@loldja/installing-apache-spark-pyspark-th

4条回答
  •  爱一瞬间的悲伤
    2020-12-25 08:48

    The fix can be found at https://github.com/apache/spark/pull/23055.

    The resource module is only for Unix/Linux systems and is not applicaple in a windows environment. This fix is not yet included in the latest release but you can modify the worker.py in your installation as shown in the pull request. The changes to that file can be found at https://github.com/apache/spark/pull/23055/files.

    You will have to re-zip the pyspark directory and move it the lib folder in your pyspark installation directory (where you extracted the pre-compiled pyspark according to the tutorial you mentioned)

提交回复
热议问题