1、配置python环境变量
https://blog.csdn.net/u013402321/article/details/83185345
PYTHONPATH = /Users/xia/Documents/tools/spark-2.2.0-224-bin/python
SPARK_HOME=/Users/xia/Documents/tools/spark-2.2.0-224-bin
2、配置sprak_lib
1、配置python环境变量
https://blog.csdn.net/u013402321/article/details/83185345
PYTHONPATH = /Users/xia/Documents/tools/spark-2.2.0-224-bin/python
SPARK_HOME=/Users/xia/Documents/tools/spark-2.2.0-224-bin
2、配置sprak_lib