我在Jupyter Notebook中运行的代码:
import pyspark
from pyspark import SparkContext
from pyspark.sql import SQLContext
from pyspark.sql import SparkSession
from pyspark.sql.types import Row
from datetime import datetime
sc = SparkContext()
spark = SparkSession(sc)
simple_data = sc.parallelize ([1,2,3])
simple_data.count()
收到的错误:
IllegalArgumentException: 'Unsupported class file major version 56'