Filip Gep
08/17/2021, 2:10 PMservices:
web:
image: apachepinot/pinot:latest
command: QuickStart -type hybrid
container_name: "pinot"
volumes:
- ./config:/config
ports:
- "9000:9000" # Controller
- "9001:8000" # Broker
- "9002:7000" # Server
Is kafka
included as a part of this image? If so, how can I reach it (which port)? Finally, how can I create a topic and publish/subscribe to it?
thanks for your help!Daniel Lavoie
08/17/2021, 2:13 PMDaniel Lavoie
08/17/2021, 2:13 PMFilip Gep
08/17/2021, 2:16 PMdocker-compose
file in the repo you shared, I can see that you separate all Pinot pieces + zookeeper + kafka. Hovewer, in the compose file I shared, they are a part of one image. My question is: which solution is officially suggested by Pinot devs?Daniel Lavoie
08/17/2021, 2:16 PMDaniel Lavoie
08/17/2021, 2:18 PMFilip Gep
08/17/2021, 2:21 PMDaniel Lavoie
08/17/2021, 2:22 PMDaniel Lavoie
08/17/2021, 2:22 PMDaniel Lavoie
08/17/2021, 2:23 PMDaniel Lavoie
08/17/2021, 2:25 PMlocalhost:9092
, and from kafka:19092
within the pinot container.Filip Gep
08/17/2021, 2:29 PMFilip Gep
08/18/2021, 12:03 PMActive Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2123 0.0.0.0:* LISTEN 1/java
tcp 0 0 0.0.0.0:7500 0.0.0.0:* LISTEN 1/java
tcp 0 0 0.0.0.0:2191 0.0.0.0:* LISTEN 1/java
tcp 0 0 127.0.0.1:19092 0.0.0.0:* LISTEN 1/java
tcp 0 0 0.0.0.0:7000 0.0.0.0:* LISTEN 1/java
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1/java
tcp 0 0 127.0.0.11:43079 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 1/java
udp 0 0 127.0.0.11:49880 0.0.0.0:* -
It seems (confirmed) that 19092
port is visible only internally. So there’s no way to access it from the outside. Is there a reason why this was designed this way?Filip Gep
08/18/2021, 12:04 PMDaniel Lavoie
08/18/2021, 12:05 PMkafka:
image: confluentinc/cp-kafka:5.5.0
hostname: kafka
restart: unless-stopped
depends_on:
- zookeeper
ports:
- 9092:9092
- 19092:19092
environment:
KAFKA_ADVERTISED_LISTENERS: <LOCALHOST://localhost:9092>,<DOCKER://kafka:19092>
It’s suposed to be exposed with 9092 with localhost so you can access it from your local machine.Daniel Lavoie
08/18/2021, 12:06 PMDaniel Lavoie
08/18/2021, 12:06 PMFilip Gep
08/18/2021, 12:06 PMservices:
web:
image: apachepinot/pinot:latest
command: QuickStart -type hybrid
container_name: "pinot"
volumes:
- ./config:/config
ports:
- "9000:9000" # Controller
- "9001:8000" # Broker
- "9002:7000" # Server
Daniel Lavoie
08/18/2021, 12:07 PMDaniel Lavoie
08/18/2021, 12:07 PMDaniel Lavoie
08/18/2021, 12:08 PMFilip Gep
08/18/2021, 12:11 PMpinot:latest
image. Now it’s crystal clear that I must add another image for kafka. Let me test this. Once again, thanks for your help!:)Daniel Lavoie
08/18/2021, 12:12 PMFilip Gep
08/18/2021, 12:22 PMkafka
service.Daniel Lavoie
08/18/2021, 12:23 PMpinot:2181
Filip Gep
08/18/2021, 2:26 PMapachepinot/pinot:latest
image. 0.6.0
is working perfectly fine. Just wanted to let you know about this.