spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek <>
Subject Re: Skip Corrupted Parquet blocks / footer.
Date Sun, 01 Jan 2017 19:16:06 GMT
You will have to change the metadata file under _spark_metadata folder to remove the listing
of corrupt files.

Shobhit G 

Sent from my iPhone

> On Dec 31, 2016, at 8:11 PM, khyati [via Apache Spark Developers List] <>
> Hi, 
> I am trying to read the multiple parquet files in sparksql. In one dir there are two
files, of which one is corrupted. While trying to read these files, sparksql throws Exception
for the corrupted file. 
> val newDataDF ="/data/testdir/data1.parquet","/data/testdir/corruptblock.0")

> throws Exception. 
> Is there any way to just skip the file having corrupted block/footer and just read the
file/files which are proper? 
> Thanks 
> If you reply to this email, your message will be added to the discussion below:
> To start a new topic under Apache Spark Developers List, email

> To unsubscribe from Apache Spark Developers List, click here.

View this message in context:
Sent from the Apache Spark Developers List mailing list archive at
View raw message