cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i read parquet file compressed by snappy?

Mallesh
New Contributor

Hi All,

I wanted to read parqet file compressed by snappy into Spark RDD

input file name is: part-m-00000.snappy.parquet

i have used sqlContext.setConf("spark.sql.parquet.compression.codec.", "snappy")

val inputRDD=sqlContext.parqetFile(args(0))

whenever im trying to run im facing java.lang.IlligelArgumentException : Illegel character in opaque part at index 2

i tried renaming the input file like input_data_snappy.parquet,then also im getting same exception.

please help me for this

Thanks for advance.

1 REPLY 1

raela
Databricks Employee
Databricks Employee

Have you tried sqlContext.read.parquet("/filePath/") ?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group