Documentation Index
Fetch the complete documentation index at: https://docs.startree.ai/llms.txt
Use this file to discover all available pages before exploring further.
In this recipe, we’ll learn how to fix the host name of components in an Apache Pinot cluster.
Prerequisites
To follow the code examples in this guide, you must install Docker locally.
Navigate to recipe
- If you haven’t already, download recipes.
- In terminal, go to the recipe by running the following command:
cd pinot-recipes/recipes/fixed-hostname
Launch Pinot Cluster
You can spin up a Pinot Cluster by running the following command:
This command will run a single instance of the Pinot Controller, Pinot Server, Pinot Broker, Pinot Minion, and Zookeeper.
You can find the docker-compose.yml file on GitHub.
Navigate to the Pinot UI and you should see the following:
Fixed hostnames
Configuring fixed host names
Let’s have a look at the Docker Compose file to see how we did this.
The commands to start the container for each component are described below:
Controller
StartController -zkAddress zookeeper-fixedhost:2181 -controllerHost pinot-controller-fixedhost
Broker
StartBroker -zkAddress zookeeper-fixedhost:2181 -brokerHost pinot-broker-fixedhost
Server
StartServer -zkAddress zookeeper-fixedhost:2181 -serverHost pinot-server-fixedhost
Minion
StartMinion -zkAddress zookeeper-fixedhost:2181 -minionHost pinot-minion-fixedhost