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

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.

conda install -c cyclus java-jdk

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

Leave a Comment