Write and run pyspark in IntelliJ IDEA

后端 未结 3 1948
Happy的楠姐
Happy的楠姐 2021-02-15 16:26

i am trying to work with Pyspark in IntelliJ but i cannot figure out how to correctly install it/setup the project. I can work with Python in IntelliJ and I can use the pyspark

3条回答
  •  抹茶落季
    2021-02-15 17:12

    Set the env path for (SPARK_HOME and PYTHONPATH) in your program run/debug configuration.

    For instance:

    SPARK_HOME=/Users//javalibs/spark-1.5.0-bin-hadoop2.4/python/
    PYTHON_PATH=/Users//javalibs/spark-1.5.0-bin-hadoop2.4/python/pyspark
    

    See attached snapshot in IntelliJ Idea

提交回复
热议问题