Software:Apache Parquet
Initial release | 13 March 2013 |
---|---|
Stable release | 2.9.0
/ 6 October 2021[1] |
Written in | Java (reference implementation)[2] |
Operating system | Cross-platform |
Type | Column-oriented DBMS |
License | Apache License 2.0 |
Website | parquet |
Apache Parquet is a free and open-source column-oriented data storage format in the Apache Hadoop ecosystem. It is similar to RCFile and ORC, the other columnar-storage file formats in Hadoop, and is compatible with most of the data processing frameworks around Hadoop. It provides efficient data compression and encoding schemes with enhanced performance to handle complex data in bulk.
History
The open-source project to build Apache Parquet began as a joint effort between Twitter[3] and Cloudera.[4] Parquet was designed as an improvement on the Trevni columnar storage format created by Doug Cutting, the creator of Hadoop. The first version, Apache Parquet 1.0, was released in July 2013. Since April 27, 2015, Apache Parquet has been a top-level Apache Software Foundation (ASF)-sponsored project.[5][6]
Features
Apache Parquet is implemented using the record-shredding and assembly algorithm,[7] which accommodates the complex data structures that can be used to store data.[8] The values in each column are stored in contiguous memory locations, providing the following benefits:[9]
- Column-wise compression is efficient in storage space
- Encoding and compression techniques specific to the type of data in each column can be used
- Queries that fetch specific column values need not read the entire row, thus improving performance
Apache Parquet is implemented using the Apache Thrift framework, which increases its flexibility; it can work with a number of programming languages like C++, Java, Python, PHP, etc.[10]
As of August 2015,[11] Parquet supports the big-data-processing frameworks including Apache Hive, Apache Drill, Apache Impala, Apache Crunch, Apache Pig, Cascading, Presto and Apache Spark. It is one of external data formats used by pandas Python data manipulation and analysis library.
Compression and encoding
In Parquet, compression is performed column by column, which enables different encoding schemes to be used for text and integer data. This strategy also keeps the door open for newer and better encoding schemes to be implemented as they are invented.
Dictionary encoding
Parquet has an automatic dictionary encoding enabled dynamically for data with a small number of unique values (i.e. below 105) that enables significant compression and boosts processing speed.[12]
Bit packing
Storage of integers is usually done with dedicated 32 or 64 bits per integer. For small integers, packing multiple integers into the same space makes storage more efficient.[12]
Run-length encoding (RLE)
To optimize storage of multiple occurrences of the same value, a single value is stored once along with the number of occurrences.[12]
Parquet implements a hybrid of bit packing and RLE, in which the encoding switches based on which produces the best compression results. This strategy works well for certain types of integer data and combines well with dictionary encoding.[12]
Comparison
Apache Parquet is comparable to RCFile and Optimized Row Columnar (ORC) file formats — all three fall under the category of columnar data storage within the Hadoop ecosystem. They all have better compression and encoding with improved read performance at the cost of slower writes. In addition to these features, Apache Parquet supports limited schema evolution[citation needed], i.e., the schema can be modified according to the changes in the data. It also provides the ability to add new columns and merge schemas that do not conflict.
Apache Arrow is designed as an in-memory complement to on-disk columnar formats like Parquet and ORC. The Arrow and Parquet projects include libraries that allow for reading and writing between the two formats.[citation needed]
See also
- Apache Arrow
- Apache Pig
- Apache Hive
- Apache Impala
- Apache Drill
- Apache Kudu
- Apache Spark
- Apache Thrift
- Trino (SQL query engine)
- Presto (SQL query engine)
- SQLite embedded database system
References
- ↑ "Apache Parquet – Releases". https://parquet.apache.org/blog/.
- ↑ "Parquet-MR source code". https://github.com/apache/parquet-mr.
- ↑ "Release Date". https://blog.twitter.com/2013/announcing-parquet-10-columnar-storage-for-hadoop.
- ↑ "Introducing Parquet: Efficient Columnar Storage for Apache Hadoop - Cloudera Engineering Blog" (in en-US). 2013-03-13. http://blog.cloudera.com/blog/2013/03/introducing-parquet-columnar-storage-for-apache-hadoop/.
- ↑ "Apache Parquet paves the way for better Hadoop data storage". 28 April 2015. http://www.infoworld.com/article/2915565/big-data/apache-parquet-paves-the-way-towards-better-hadoop-data-storage.html.
- ↑ "The Apache Software Foundation Announces Apache™ Parquet™ as a Top-Level Project : The Apache Software Foundation Blog". 27 April 2015. https://blogs.apache.org/foundation/entry/the_apache_software_foundation_announces75.
- ↑ "The striping and assembly algorithms from the Google-inspired Dremel paper". https://github.com/julienledem/redelm/wiki/The-striping-and-assembly-algorithms-from-the-Dremel-paper.
- ↑ "Apache Parquet Documentation". https://parquet.apache.org/documentation/latest/.
- ↑ "Apache Parquet Cloudera". http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cdh_ig_parquet.html.
- ↑ "Apache Thrift". http://thrift.apache.org/.
- ↑ "Supported Frameworks". https://cwiki.apache.org/confluence/display/Hive/Parquet.
- ↑ 12.0 12.1 12.2 12.3 "Announcing Parquet 1.0: Columnar Storage for Hadoop | Twitter Blogs". https://blog.twitter.com/2013/announcing-parquet-10-columnar-storage-for-hadoop.
External links
Original source: https://en.wikipedia.org/wiki/Apache Parquet.
Read more |