I'm trying to read about 300 single json files into pyspark. I can read a single one, but as soon as I use a wildcard it throughs an error:
IllegalArgumentException: 'Unsupported class file major version 56'
I've tried applying the following code:
import pyspark
from pyspark import SparkContext, SparkConf
conf = SparkConf()
sc = SparkContext(appName='azure_test', conf=conf)
sqlContext = pyspark.SQLContext(sc)
data = sqlContext.read.json('test_1*.json')
I'd expect the output to be a DF of the jsons but instead got the error as mentioned above.