Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Super Guru

often we have need to read the parquet file, parquet-meta data or parquet-footer, parquet tools is shipped with parquet-hadoop library which can help us to read parquet. these are simple steps to build parquet-tools and demonstrate use of it.

prerequisites: maven 3,git, jdk-7/8

// Building a parquet tools

git clone https://github.com/Parquet/parquet-mr.git 
cd parquet-mr/parquet-tools/ 
mvn clean package -Plocal 

// know the schema of the parquet file

java -jar parquet-tools-1.6.0.jar schema sample.parquet 

// Read parquet file

java -jar parquet-tools-1.6.0.jar cat sample.parquet 

// Read few lines in parquet file

java -jar parquet-tools-1.6.0.jar head -n5 sample.parquet 

// know the meta information of the parquet file

java -jar parquet-tools-1.6.0.jar meta sample.parquet
46,147 Views
Version history
Last update:
‎09-16-2022 01:37 AM
Updated by:
Contributors