0
votes

I try to run simple Pyspark code in Pycharm but when it goes to action functions (show(), collect()) Pycharm gives next errors (and long list of exceptions):

py4j.protocol.Py4JJavaError: An error occurred while calling o39.showString.
.......
ERROR TaskSetManager: Task 0 in stage 0.0 failed 1 times; aborting job
.......
ERROR Executor: Exception in task 0.0 in stage 0.0 (TID 0)
.......

Pyspark works on Jupyter Notebook but when it goes to Pycharm it doesn't.

How can I fix it?