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

后端 未结 3 1800
死守一世寂寞
死守一世寂寞 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 16:54

    Yeah I had the same problem long time ago in Pyspark in Anaconda I tried several ways to rectify this finally I found on my own by installing Java for anaconda separately afterwards there is no Py4jerror.

    https://anaconda.org/cyclus/java-jdk

    0 讨论(0)
  • 2020-12-01 16:55

    If you are using Anaconda, try to install java-jdk for Anaconda:

    conda install -c cyclus java-jdk
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题