From 2ef44fe837b355058d8bccc0237526697ce0f0fc Mon Sep 17 00:00:00 2001 From: Hazem Omar Date: Fri, 6 Dec 2024 18:17:49 +0200 Subject: [PATCH] Initial commit --- docker-compose.yml => FDMHadoop.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) rename docker-compose.yml => FDMHadoop.yml (86%) diff --git a/docker-compose.yml b/FDMHadoop.yml similarity index 86% rename from docker-compose.yml rename to FDMHadoop.yml index ed40dc62..4df22a6a 100644 --- a/docker-compose.yml +++ b/FDMHadoop.yml @@ -14,6 +14,8 @@ services: - CLUSTER_NAME=test env_file: - ./hadoop.env + networks: + - mynet datanode: image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8 @@ -25,6 +27,11 @@ services: SERVICE_PRECONDITION: "namenode:9870" env_file: - ./hadoop.env + ports: + - 8084:8084 + networks: + - mynet + resourcemanager: image: bde2020/hadoop-resourcemanager:2.0.0-hadoop3.2.1-java8 @@ -34,6 +41,8 @@ services: SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864" env_file: - ./hadoop.env + networks: + - mynet nodemanager1: image: bde2020/hadoop-nodemanager:2.0.0-hadoop3.2.1-java8 @@ -43,6 +52,8 @@ services: SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088" env_file: - ./hadoop.env + networks: + - mynet historyserver: image: bde2020/hadoop-historyserver:2.0.0-hadoop3.2.1-java8 @@ -54,8 +65,14 @@ services: - hadoop_historyserver:/hadoop/yarn/timeline env_file: - ./hadoop.env - + networks: + - mynet volumes: hadoop_namenode: hadoop_datanode: hadoop_historyserver: + +networks: + mynet: + name: Hadoop-network + driver: bridge \ No newline at end of file