Exception: could not open socket on pyspark

前端 未结 3 2103
北恋
北恋 2020-12-19 16:42

Whenever I am trying to execute a simple processing in pyspark, it fails to open the socket.

>>> myRDD = sc.parallelize(range(6), 3)
>>> sc         


        
3条回答
  •  甜味超标
    2020-12-19 17:15

    Its not the ideal solution but now I am aware of the cause. Pyspark is unable to create jvm socket with JDK 1.8 (64-bit) version, so I just set my java path to jdk 1.7 and it worked.

提交回复
热议问题