spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahender Sarangam <mahender.bigd...@outlook.com>
Subject Unable to read multiple JSON.Gz File.
Date Mon, 01 Oct 2018 08:59:40 GMT

I’m trying to read multiple .json.gz files from a Blob storage path using the below scala
code. But I’m unable to read the data from the files or print the schema. If the files are
not compressed as .gz then we are able to read all the files into the Dataframe.
I’ve even tried giving *.gz but no luck.
 val df = spark.read.json("wasb://XYZ@AzureStorage.blob.core.windows.net/sourcePath/"<mailto:wasb://XYZ@AzureStorage.blob.core.windows.net/sourcePath/>)
Mime
View raw message