Software:Pinot (data store)

From HandWiki
Pinot
Pinot Logo
Original author(s)
  • Kishore Gopalakrishna
  • Xiang Fu
Developer(s)Apache Pinot
Stable release
0.7.1 / 18 March 2021; 2 years ago (2021-03-18)
RepositoryPinot repository
Written inJava
Operating systemCross-platform
Type
LicenseApache License 2.0
Websitepinot.apache.org

Pinot is a column-oriented, open-source, distributed data store written in Java. Pinot is designed to execute OLAP queries with low latency[1]. It is suited in contexts where fast analytics, such as aggregations, are needed on immutable data, possibly, with real-time data ingestion.[2] The name Pinot comes from the Pinot grape vines that are pressed into liquid that is used to produce a variety of different wines. The founders of the database chose the name as a metaphor for analyzing vast quantities of data from a variety of different file formats or streaming data sources.[3]

Pinot was first created at LinkedIn after the engineering staff determined that there were no off the shelf solutions that met the social networking site's requirements like predictable low latency, data freshness in seconds, fault tolerance and scalability.[3][4] Pinot is used in production by technology companies such as Uber,[5] Microsoft,[2] and Factual[6].

History

Pinot was started as an internal project at LinkedIn in 2013 to power a variety of user-facing and business-facing products.The first analytics product at LinkedIn to use Pinot was a redesign of the social networking site's feature that allows members to see who has viewed their profile in real-time. The project was open-sourced in June 2015 under an Apache 2.0 license and was donated to the Apache Software Foundation by LinkedIn in June 2019.[3][2]

Architecture

Architecture of Apache Pinot
Architecture diagram of Apache Pinot

Pinot uses Apache Helix for cluster management. Helix is embedded as an agent within the different components and uses Apache ZooKeeper for coordination and maintaining the overall cluster state and health. All Pinot servers and brokers are managed by Helix. Helix is a generic cluster management framework to manage partitions and replicas in a distributed system.

Query management

Queries are received by brokers—which checks the request against the segment-to-server routing table—scattering the request between real-time and offline servers.

Cluster management

Pinot leverages Apache Helix for cluster management. Helix is a cluster management framework to manage replicated, partitioned resources in a distributed system. Helix uses Zookeeper to store cluster state and metadata.

Features

Pinot shares similar features with comparable OLAP datastores, such as Apache Druid. Like Druid, Pinot is a column-oriented database with various compression schemes such as Run Length and Fixed Bit Length. Pinot supports pluggable indexing technologies - Sorted Index, Bitmap Index, Inverted Index, Star-Tree Index, and Range Index, which are what primarily differentiates Pinot from other OLAP datastores.

Pinot supports near real-time ingestion from streams such as Kafka, AWS Kinesis and batch ingestion from sources such as Hadoop, S3, Azure, GCS. Like mostly, all other OLAP datastores and data warehousing solutions, Pinot supports a SQL-like query language that supports selection, aggregation, filtering, group by, order by, distinct queries on data

See also

References

  1. Im, Jean-François; Gopalakrishna, Kishore; Subramaniam, Subbu; Shrivastava, Mayank; Tumbde, Adwait; Jiang, Xiaotian; Dai, Jennifer; Lee, Seunghyun et al. (2018-05-27). Pinot: Realtime OLAP for 530 Million Users. Sigmod '18. Association for Computing Machinery. pp. 583–594. doi:10.1145/3183713.3190661. ISBN 9781450347037. https://dl.acm.org/doi/10.1145/3183713.3190661#d13801648e1. 
  2. 2.0 2.1 2.2 Pawar, Neha. "Pinot Joins Apache Incubator" , LinkedIn Engineering, 01 April 2019
  3. 3.0 3.1 3.2 Gopalakrishna, Kishore. "Open Sourcing Pinot: Scaling the Wall of Real-Time Analytics" (in en). LinkedIn. Archived from the original on 10 September 2015. https://web.archive.org/web/20150910081445/http://engineering.linkedin.com/pinot/open-sourcing-pinot-scaling-wall-real-time-analytics. Retrieved 3 September 2020. 
  4. Yegulalp, Serdar (2015-06-11). "LinkedIn fills another SQL-on-Hadoop niche" (in en). InfoWorld. https://www.infoworld.com/article/2934506/linkedins-pinot-fills-another-sql-on-hadoop-niche.html. 
  5. Wang, Haibo (15 January 2020). "Engineering SQL Support on Apache Pinot at Uber". Uber. https://eng.uber.com/engineering-sql-support-on-apache-pinot/. Retrieved 3 September 2020. 
  6. Melz, Eric (17 May 2020). "Pinot @ Factual" (in en). Archived from the original on 3 September 2020. https://web.archive.org/web/20200903081722/https://medium.com/@ericmelz/pinot-factual-6118ebaf64b3. Retrieved 3 September 2020. 

External links