mac pycharm 搭建 spark 开发环境

  1. 安装pycharm
  2. 安装py4j
    [code]pip install py4j[/code]
  3. 配置环境变量
    [quote]
    "Run" ->"Edit Configurations" -> "Environment variables"

    SPARK_HOME /usr/local/spark
    PYTHONPATH /usr/local/spark/python
    [/quote]