arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Code Setup

hashtag
Dev Environment Setup

To contribute to Pinot, please follow the instructions below.

hashtag
Git

Pinot uses git for source code management. If you are new to Git, it will be good to review of Git and a common tasks like and .

hashtag
Getting the Source Code

hashtag
Create a fork

To limit the number of branches created on the Apache Pinot repository, we recommend that you create a fork by clicking on the fork button . Read more about

hashtag
Clone the repository locally

hashtag
Maven

Pinot is a Maven project and familiarity with Maven will help you work with Pinot code. If you are new to Maven, you can read about Maven and .

Run the following maven command to setup the project.

hashtag
Setup IDE

Import the project into your favorite IDE. Setup stylesheet according to your IDE. We have provided instructions for intellij and eclipse. If you are using other IDEs, please ensure you use stylesheet based on .

hashtag
Intellij

To import the Pinot stylesheet this launch intellij and navigate to Preferences (on Mac) or Settings on Linux.

  • Navigate to Editor -> Code Style -> Java

  • Select Import Scheme -> Intellij IDES code style XML

hashtag
Eclipse

To import the Pinot stylesheet this launch eclipse and navigate to Preferences (on Mac) or Settings on Linux.

  • Navigate to Java->Code Style->Formatter

  • Choose codestyle-eclipse.xml from incubator-pinot/config folder of your workspace. Click Apply.

Choose codestyle-intellij.xml from incubator-pinot/config folder of your workspace. Click Apply.

basicsarrow-up-right
managing branchesarrow-up-right
rebasingarrow-up-right
in this pagearrow-up-right
fork workflow herearrow-up-right
herearrow-up-right
get a quick overview herearrow-up-right
thisarrow-up-right
_images/import_scheme.png
_images/eclipse_style.png
$ mkdir workspace
$ cd workspace
$ git clone [email protected]:<github username>/pinot.git
$ cd pinot
# set upstream
$ git remote add upstream https://github.com/apache/incubator-pinot
# check that the upstream shows up correctly
$ git remote -v
# compile, download sources
$mvn install package -DskipTests -Pbin-dist -DdownloadSources -DdownloadJavadocs