PySpark in iPython notebook raises Py4JJavaError when using count() and first()

后端 未结 3 1853
死守一世寂寞
死守一世寂寞 2020-12-01 16:24

I am using PySpark(v.2.1.0) in iPython notebook (python v.3.6) over virtualenv in my Mac(Sierra 10.12.3 Beta).

1.I launched iPython notebook by shooting this in Ter

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 17:10

    Pyspark 2.1.0 is not compatible with python 3.6, see https://issues.apache.org/jira/browse/SPARK-19019.

    You need to use earlier python version or you can try building master or 2.1 branch from github and it should work.

提交回复
热议问题