-
Notifications
You must be signed in to change notification settings - Fork 2.5k
chore: Add Java 17 Hadoop base image and Spark 4.0.1 docker compose s… #18520
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
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 |
|---|---|---|
| @@ -0,0 +1,264 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| services: | ||
|
|
||
| namenode: | ||
| image: apachehudi/hudi-hadoop_3.4.0-namenode:latest | ||
| hostname: namenode | ||
|
yihua marked this conversation as resolved.
|
||
| container_name: namenode | ||
| environment: | ||
| - CLUSTER_NAME=hudi_hadoop340_hive313_spark401 | ||
| ports: | ||
| - "50070:50070" | ||
| - "8020:8020" | ||
| - "9870:9870" | ||
| env_file: | ||
| - ./hadoop.env | ||
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://namenode:9870"] | ||
| interval: 30s | ||
| timeout: 10s | ||
| retries: 3 | ||
|
|
||
|
yihua marked this conversation as resolved.
|
||
| datanode1: | ||
| image: apachehudi/hudi-hadoop_3.4.0-datanode:latest | ||
| container_name: datanode1 | ||
| hostname: datanode1 | ||
| environment: | ||
| - CLUSTER_NAME=hudi_hadoop340_hive313_spark401 | ||
| env_file: | ||
| - ./hadoop.env | ||
| ports: | ||
| - "50075:50075" | ||
| - "9864:9864" | ||
| - "50010:50010" | ||
| links: | ||
| - "namenode" | ||
| - "historyserver" | ||
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://datanode1:9864"] | ||
| interval: 30s | ||
| timeout: 10s | ||
| retries: 3 | ||
| depends_on: | ||
| - namenode | ||
|
|
||
| historyserver: | ||
| image: apachehudi/hudi-hadoop_3.4.0-history:latest | ||
| hostname: historyserver | ||
| container_name: historyserver | ||
| environment: | ||
| - CLUSTER_NAME=hudi_hadoop340_hive313_spark401 | ||
| depends_on: | ||
| - "namenode" | ||
| links: | ||
| - "namenode" | ||
| ports: | ||
| - "8188:8188" | ||
|
yihua marked this conversation as resolved.
|
||
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://historyserver:8188"] | ||
| interval: 30s | ||
| timeout: 10s | ||
| retries: 3 | ||
| env_file: | ||
| - ./hadoop.env | ||
| volumes: | ||
| - historyserver:/hadoop/yarn/timeline | ||
|
|
||
| hive-metastore-postgresql: | ||
| image: bde2020/hive-metastore-postgresql:3.1.0 | ||
| 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 | ||
| hostname: hivemetastore | ||
| container_name: hivemetastore | ||
| links: | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
| env_file: | ||
| - ./hadoop.env | ||
| command: /opt/hive/bin/hive --service metastore | ||
| environment: | ||
| - "SERVICE_PRECONDITION=namenode:9870 hive-metastore-postgresql:5432" | ||
| ports: | ||
| - "9083:9083" | ||
| healthcheck: | ||
| test: ["CMD", "nc", "-z", "hivemetastore", "9083"] | ||
| interval: 30s | ||
| timeout: 10s | ||
| retries: 3 | ||
| depends_on: | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
|
|
||
| hiveserver: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3:latest | ||
| hostname: hiveserver | ||
| container_name: hiveserver | ||
| env_file: | ||
| - ./hadoop.env | ||
| environment: | ||
| - SERVICE_PRECONDITION=hivemetastore:9083 | ||
| ports: | ||
| - "10000:10000" | ||
| - "10002:10002" | ||
| depends_on: | ||
| - "hivemetastore" | ||
| links: | ||
| - "hivemetastore" | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
| volumes: | ||
| - ${HUDI_WS}:/var/hoodie/ws | ||
|
|
||
| zookeeper: | ||
| image: 'bitnamilegacy/zookeeper:3.6.4' | ||
| hostname: zookeeper | ||
| container_name: zookeeper | ||
| ports: | ||
| - "2181:2181" | ||
| environment: | ||
| - ALLOW_ANONYMOUS_LOGIN=yes | ||
|
|
||
| kafka: | ||
| image: 'bitnamilegacy/kafka:3.4.1' | ||
|
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. Non-blocker: should we consider using |
||
| 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. Non-blocker: do we need same configs as Spark3.5 docker image ( |
||
|
|
||
| sparkmaster: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkmaster_4.0.1:latest | ||
| hostname: sparkmaster | ||
| container_name: sparkmaster | ||
| env_file: | ||
| - ./hadoop.env | ||
| ports: | ||
| - "8080:8080" | ||
| - "7077:7077" | ||
| - "8888:8888" | ||
| volumes: | ||
| - ${HUDI_WS}:/var/hoodie/ws | ||
| - ./notebooks:/opt/workspace/notebooks | ||
| environment: | ||
| - INIT_DAEMON_STEP=setup_spark | ||
| links: | ||
| - "hivemetastore" | ||
| - "hiveserver" | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
|
|
||
| spark-worker-1: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkworker_4.0.1:latest | ||
| hostname: spark-worker-1 | ||
| container_name: spark-worker-1 | ||
| env_file: | ||
| - ./hadoop.env | ||
| depends_on: | ||
| - sparkmaster | ||
| ports: | ||
| - "8081:8081" | ||
| environment: | ||
| - SPARK_MASTER=spark://sparkmaster:7077 | ||
| links: | ||
| - "hivemetastore" | ||
| - "hiveserver" | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
|
|
||
| adhoc-1: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkadhoc_4.0.1:latest | ||
| hostname: adhoc-1 | ||
| container_name: adhoc-1 | ||
| env_file: | ||
| - ./hadoop.env | ||
| depends_on: | ||
| - sparkmaster | ||
| ports: | ||
| - '4040:4040' | ||
| environment: | ||
| - SPARK_MASTER=spark://sparkmaster:7077 | ||
| links: | ||
| - "hivemetastore" | ||
| - "hiveserver" | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
| volumes: | ||
| - ${HUDI_WS}:/var/hoodie/ws | ||
|
|
||
| adhoc-2: | ||
| image: apachehudi/hudi-hadoop_3.4.0-hive_3.1.3-sparkadhoc_4.0.1:latest | ||
| hostname: adhoc-2 | ||
| container_name: adhoc-2 | ||
| env_file: | ||
| - ./hadoop.env | ||
| depends_on: | ||
| - sparkmaster | ||
| environment: | ||
| - SPARK_MASTER=spark://sparkmaster:7077 | ||
| links: | ||
| - "hivemetastore" | ||
| - "hiveserver" | ||
| - "hive-metastore-postgresql" | ||
| - "namenode" | ||
| volumes: | ||
| - ${HUDI_WS}:/var/hoodie/ws | ||
|
|
||
| minio: | ||
| image: 'minio/minio:latest' | ||
| hostname: minio | ||
| container_name: minio | ||
| ports: | ||
| - 9090:9090 # server address | ||
| - 9091:9091 # console address | ||
| volumes: | ||
| - minio-data:/data | ||
| environment: | ||
| - MINIO_ACCESS_KEY=minio | ||
| - MINIO_SECRET_KEY=minio123 | ||
| - MINIO_DOMAIN=minio | ||
| command: server --address ":9090" --console-address ":9091" /data | ||
|
|
||
| mc: | ||
| image: minio/mc | ||
| container_name: mc | ||
| entrypoint: > | ||
| /bin/sh -c " | ||
| until (/usr/bin/mc alias set minio http://minio:9090 minio minio123 --api S3v4) do echo '...waiting...' && sleep 1; done; | ||
| /usr/bin/mc rm -r --force minio/warehouse; | ||
| /usr/bin/mc mb minio/warehouse; | ||
| /usr/bin/mc policy set public minio/warehouse; | ||
| tail -f /dev/null | ||
| " | ||
| depends_on: | ||
| - minio | ||
|
|
||
| volumes: | ||
| namenode: | ||
| historyserver: | ||
| hive-metastore-postgresql: | ||
| minio-data: | ||
|
|
||
| networks: | ||
| default: | ||
| name: hudi | ||
Uh oh!
There was an error while loading. Please reload this page.