ERROR WHILE RUNNING collect() in PYSPARK

前端 未结 2 1513
陌清茗
陌清茗 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:30

    I've had the same problem, but after installing Java SE Development Kit 8u191 and selecting java-8-jdk with:

    sudo update-alternatives --config java
    

    it dissappered.

    0 讨论(0)
  • 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.

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