After typing pyspark on the shell.Getting following error:-
SPARK_MAJOR_VERSION is set to 2, using Spark2
1
2
3
4
5
Traceback (most recent call last):
File “/usr/lib64/python2.7/site.py”, line 62, in
import os
File “/usr/lib64/python2.7/os.py”, line 398, in
import UserDict
File “/usr/lib64/python2.7/UserDict.py”, line 83, in
import _abcoll
File “/usr/lib64/python2.7/_abcoll.py”, line 11, in
from abc import ABCMeta, abstractmethod
ImportError: cannot import name ABCMeta
Please tell me how to resolve this