Running Pinot locally
This quick start guide will help you bootstrap a Pinot standalone instance on your local machine.
Last updated
Was this helpful?
This quick start guide will help you bootstrap a Pinot standalone instance on your local machine.
Last updated
Was this helpful?
In this guide, you'll learn how to download and install Apache Pinot as a standalone instance.
First, let's download the Pinot distribution for this tutorial. You can either download a packaged release or build a distribution from the source code.
You can build from source or download the distribution:
Download the latest binary release from , or use this command
Once you have the tar file:
You can find older versions of Apache Pinot at . For example, if you wanted to download Pinot 0.10.0, you could run the following command:
Currently Apache Pinot doesn't provide official binaries for M1 Mac. You can however build from source using the steps provided above. In addition to the steps, you will need to add the following in your ~/.m2/settings.xml
prior to the build.
Also make sure to install rosetta
softwareupdate --install-rosetta
Note that some installations of the JDK do not contain the JNI bindings that are necessary to run all tests, if you see any java.lang.UnsatisfiedLinkError
while running tests, you may need to change your JDK. If using Homebrew, you may install AdoptOpenJDK 11 using: brew install --cask adoptopenjdk11
Now that we've downloaded Pinot, it's time to set up a cluster. There are two ways to do this:
Pinot comes with quick-start commands that launch instances of Pinot components in the same process and import pre-built datasets.
For example, the following quick-start launches Pinot with a baseball dataset pre-loaded:
If you want to play with bigger datasets (more than a few MB), you can launch all the components individually.
The video below is a step-by-step walk through for launching the individual components of Pinot and scaling them to multiple instances.
For a list of all the available quick starts, see the .
You can find the commands that are shown in this video in the GitHub repository.
You can use to browse the Zookeeper instance.
Once your cluster is up and running, you can head over to to learn how to run queries against the data.
Starting a pinot component of interest in IntelliJ using debug mode can be useful for development purposes. You can set break points and inspect variables. Take debugging server for example, one can start zookeeper
, controller
, and broker
using the steps in . Then use the following configuration put under $PROJECT_DIR$\.run
) to start server. This is an example of how it can be used. Please replace the metrics-core version and cluster name as needed.