From b6e844f64cd18ea1d8f3603b2469e534602bc15d Mon Sep 17 00:00:00 2001 From: Vipul Chandraker <38319728+vipulchandraker@users.noreply.github.com> Date: Wed, 27 Nov 2024 22:57:59 +0530 Subject: [PATCH 1/2] Update running-pinot-in-docker.md to include minion config --- basics/getting-started/running-pinot-in-docker.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/basics/getting-started/running-pinot-in-docker.md b/basics/getting-started/running-pinot-in-docker.md index dd325113..1b2e2fee 100644 --- a/basics/getting-started/running-pinot-in-docker.md +++ b/basics/getting-started/running-pinot-in-docker.md @@ -319,6 +319,16 @@ services: retries: 5 start_period: 10s + pinot-minion: + image: ${PINOT_IMAGE:-apachepinot/pinot:1.2.0} + command: "StartMinion -zkAddress zookeeper-houseprices:2181" + restart: unless-stopped + container_name: "pinot-minion" + depends_on: + - pinot-broker + networks: + - pinot-demo + networks: pinot-demo: name: pinot-demo From 57db84a8cead0b227e53971b8096ba7b36ec00b9 Mon Sep 17 00:00:00 2001 From: Vipul Chandraker <38319728+vipulchandraker@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:55:04 +0530 Subject: [PATCH 2/2] Update running-pinot-in-docker.md 1. updated the correct zookeeper address in Minion in docker compose. 2. Added docker run command for minion 3. Added minion container in docker container ls output 4. added minion ports in docker-compose file --- .../getting-started/running-pinot-in-docker.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/basics/getting-started/running-pinot-in-docker.md b/basics/getting-started/running-pinot-in-docker.md index 1b2e2fee..98d05b29 100644 --- a/basics/getting-started/running-pinot-in-docker.md +++ b/basics/getting-started/running-pinot-in-docker.md @@ -160,6 +160,18 @@ docker run --rm -ti \ -d ${PINOT_IMAGE} StartServer \ -zkAddress pinot-zookeeper:2181 ``` +#### Start Pinot Minion + +A Pinot minion is an optional cluster component that executes background tasks on table data apart from the query processes performed by brokers and servers + +``` +docker run --rm -ti \ + --network=pinot-demo \ + --name pinot-minion \ + -p 6000:6000 \ + -d ${PINOT_IMAGE} StartMinion \ + -zkAddress pinot-zookeeper:2181 +``` #### Start Kafka @@ -192,6 +204,7 @@ accc70bc7f07 bitnami/kafka:3.6 "/opt/bitnami/script…" About a minu 134a67eec957 apachepinot/pinot:1.2.0 "./bin/pinot-admin.s…" About a minute ago Up About a minute 8096-8098/tcp, 9000/tcp, 0.0.0.0:8099->8099/tcp pinot-broker 4fcc72cb7302 apachepinot/pinot:1.2.0 "./bin/pinot-admin.s…" About a minute ago Up About a minute 8096-8099/tcp, 0.0.0.0:9000->9000/tcp pinot-controller 144304524f6c zookeeper:3.9.2 "/docker-entrypoint.…" About a minute ago Up About a minute 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp, 8080/tcp pinot-zookeeper +9f7f194d9f40 apachepinot/pinot:1.2.0 "./bin/pinot-admin.s…" About a minute ago Up About a minute 8096-8099/tcp, 0.0.0.0:6000->6000/tcp, 9000/tcp pinot-minion ``` ### Docker Compose @@ -321,9 +334,11 @@ services: pinot-minion: image: ${PINOT_IMAGE:-apachepinot/pinot:1.2.0} - command: "StartMinion -zkAddress zookeeper-houseprices:2181" + command: "StartMinion -zkAddress pinot-zookeeper:2181" restart: unless-stopped container_name: "pinot-minion" + ports: + - "6000:6000" depends_on: - pinot-broker networks: