Setup and building
Prerequisites
Dependency | Description |
---|---|
Git | The source code of Pulsar is hosted on GitHub as a git repository. To work with the git repository, please install git. |
JDK | The source code of Pulsar is almost written in Java. Therefore, you need a working Java Development Kit (JDK) to build it. Pulsar requires JDK 17 to build. |
Maven | The source code of Pulsar is managed by Apache Maven The required Maven version is 3.6.1+. |
Zip | The build process requires Zip as a utility tool. |
note
This project includes a Maven Wrapper that can be used instead of a system installed Maven. Use it by replacing mvn
with ./mvnw
on Linux and mvnw.cmd
on Windows in the commands below.
Clone
Clone the source code to your development machine:
git clone https://github.com/apache/pulsar
The following commands are assumed to be executed from the project root directory:
cd pulsar
Build
Compile and install to local Maven repository:
mvn clean install -DskipTests
Run
bin/pulsar standalone
Connect
bin/pulsar-shell