fx19880617 edited a comment on issue #6257:
URL:
https://github.com/apache/incubator-pinot/issues/6257#issuecomment-725599855
if you are running in docker, then you can config the dns resolvable host
name in config file.
For docker, usually we can give each container a name, like
`pinot-controller-0`, `pinot-broker-1`.
E.g. below will start a pinot controller in container named
`pinot-controller-0`
```
docker run --rm -ti \
--name pinot-controller-0 \
--network=pinot-demo \
--mount type=bind,source=/tmp/pinot-docker-conf,target=/tmp \
-p 9000:9000 \
apachepinot/pinot:latest StartController \
-configFileName /tmp/controller.conf
```
Then for this setup we can configure the pinot controller host name
registered in zk by adding below line into controller configure file.
```
controller.host=pinot-controller-0
```
Similarly, we can configure pinot server conf by adding below line:
```
pinot.server.netty.host=pinot-server-0
```
This `pinot-server-0` is the docker container name, so when we start the
docker container, we need to specify the `--name `
e.g.
```
docker run --rm -ti \
--name pinot-server-0 \
--network=pinot-demo \
--mount type=bind,source=/tmp/pinot-docker-conf,target=/tmp \
apachepinot/pinot:latest StartServer \
-zkAddress zookeeper:2181 -clusterName pinot-docker \
-configFileName /tmp/server.conf
```
For Pinot broker, it's a bit tricky, the config to add right now is:
`instanceId=Broker_${broker_host}_${broker_port}`
```
instanceId=Broker_pinot-broker-0_8099
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]