-
Notifications
You must be signed in to change notification settings - Fork 2.5k
chore(docker): address PR #18520 review comments for Spark 4.0.1 stack #18524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ services: | |
|
|
||
| namenode: | ||
| image: apachehudi/hudi-hadoop_3.4.0-namenode:latest | ||
| platform: linux/amd64 | ||
| hostname: namenode | ||
| container_name: namenode | ||
| environment: | ||
|
|
@@ -35,6 +36,7 @@ services: | |
|
|
||
| datanode1: | ||
| image: apachehudi/hudi-hadoop_3.4.0-datanode:latest | ||
| platform: linux/amd64 | ||
| container_name: datanode1 | ||
| hostname: datanode1 | ||
| environment: | ||
|
|
@@ -58,6 +60,7 @@ services: | |
|
|
||
| historyserver: | ||
| image: apachehudi/hudi-hadoop_3.4.0-history:latest | ||
| platform: linux/amd64 | ||
| hostname: historyserver | ||
| container_name: historyserver | ||
| environment: | ||
|
|
@@ -68,6 +71,7 @@ services: | |
| - "namenode" | ||
| ports: | ||
| - "8188:8188" | ||
| - "19888:19888" | ||
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://historyserver:8188"] | ||
| interval: 30s | ||
|
|
@@ -80,13 +84,15 @@ services: | |
|
|
||
| hive-metastore-postgresql: | ||
| image: bde2020/hive-metastore-postgresql:3.1.0 | ||
| platform: linux/amd64 | ||
| volumes: | ||
| - hive-metastore-postgresql:/var/lib/postgresql | ||
| hostname: hive-metastore-postgresql | ||
| container_name: hive-metastore-postgresql | ||
|
|
||
| hivemetastore: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3:latest | ||
| platform: linux/amd64 | ||
| hostname: hivemetastore | ||
| container_name: hivemetastore | ||
| links: | ||
|
|
@@ -110,6 +116,7 @@ services: | |
|
|
||
| hiveserver: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3:latest | ||
| platform: linux/amd64 | ||
| hostname: hiveserver | ||
| container_name: hiveserver | ||
| env_file: | ||
|
|
@@ -130,6 +137,7 @@ services: | |
|
|
||
| zookeeper: | ||
| image: 'bitnamilegacy/zookeeper:3.6.4' | ||
| platform: linux/amd64 | ||
| hostname: zookeeper | ||
| container_name: zookeeper | ||
| ports: | ||
|
|
@@ -138,17 +146,30 @@ services: | |
| - ALLOW_ANONYMOUS_LOGIN=yes | ||
|
|
||
| kafka: | ||
| image: 'bitnamilegacy/kafka:3.4.1' | ||
| image: 'apache/kafka:3.7.2' | ||
| platform: linux/amd64 | ||
| hostname: kafkabroker | ||
| container_name: kafkabroker | ||
| ports: | ||
| - "9092:9092" | ||
| environment: | ||
| - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 | ||
| - ALLOW_PLAINTEXT_LISTENER=yes | ||
|
Comment on lines
-147
to
-148
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need these?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, with apache/kafka:3.7.2 in KRaft mode the broker acts as its own controller, so KAFKA_ZOOKEEPER_CONNECT is obsolete and ALLOW_PLAINTEXT_LISTENER (a bitnami-specific convenience var) no longer applies. The KRaft listeners and protocol map are expressed directly via the new KAFKA_LISTENERS / KAFKA_LISTENER_SECURITY_PROTOCOL_MAP env vars in the current config. It should be safe to remove. |
||
| - KAFKA_NODE_ID=1 | ||
| - KAFKA_PROCESS_ROLES=broker,controller | ||
| - KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:29092,CONTROLLER://0.0.0.0:9093,PLAINTEXT_HOST://0.0.0.0:9092 | ||
| - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafkabroker:29092,PLAINTEXT_HOST://localhost:9092 | ||
| - KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER | ||
| - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | ||
| - KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT | ||
| - KAFKA_CONTROLLER_QUORUM_VOTERS=1@kafkabroker:9093 | ||
| - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 | ||
| - KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=1 | ||
| - KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=1 | ||
| - KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0 | ||
| - KAFKA_NUM_PARTITIONS=3 | ||
|
|
||
| sparkmaster: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkmaster_4.0.1:latest | ||
| platform: linux/amd64 | ||
| hostname: sparkmaster | ||
| container_name: sparkmaster | ||
| env_file: | ||
|
|
@@ -170,6 +191,7 @@ services: | |
|
|
||
| spark-worker-1: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkworker_4.0.1:latest | ||
| platform: linux/amd64 | ||
| hostname: spark-worker-1 | ||
| container_name: spark-worker-1 | ||
| env_file: | ||
|
|
@@ -188,6 +210,7 @@ services: | |
|
|
||
| adhoc-1: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkadhoc_4.0.1:latest | ||
| platform: linux/amd64 | ||
| hostname: adhoc-1 | ||
| container_name: adhoc-1 | ||
| env_file: | ||
|
|
@@ -208,6 +231,7 @@ services: | |
|
|
||
| adhoc-2: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkadhoc_4.0.1:latest | ||
| platform: linux/amd64 | ||
| hostname: adhoc-2 | ||
| container_name: adhoc-2 | ||
| env_file: | ||
|
|
@@ -226,6 +250,7 @@ services: | |
|
|
||
| minio: | ||
| image: 'minio/minio:latest' | ||
| platform: linux/amd64 | ||
| hostname: minio | ||
| container_name: minio | ||
| ports: | ||
|
|
@@ -241,6 +266,7 @@ services: | |
|
|
||
| mc: | ||
| image: minio/mc | ||
| platform: linux/amd64 | ||
| container_name: mc | ||
| entrypoint: > | ||
| /bin/sh -c " | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add these build args to the multi-arch build command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, added!