ERROR WHILE RUNNING collect() in PYSPARK

前端 未结 2 1512
陌清茗
陌清茗 2021-01-05 10:42

I am trying to separate the website name from the URL. For example - if the URL is www.google.com, the output should be \"google\". I tried the below code and everything wor

2条回答
  •  孤城傲影
    2021-01-05 11:32

    Just to make @Anubhav Sarangi comment to this question an answer: I had the same problem. Initially, I installed Java SE 10.0.1. But got similar error. Following @Anubhav Sarangi suggestion, I downloaded and installed Java SE Development Kit 8u171 which has jdk 1.8 and the problem solved.

提交回复
热议问题