From 5521e95c599c88aa9bf112ef6a8d8a518f455144 Mon Sep 17 00:00:00 2001 From: Giannis Mouchakis Date: Fri, 27 May 2016 15:15:48 +0300 Subject: [PATCH] added docker compose --- .gitignore | 1 + docker-compose.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1269488 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8054a46 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,55 @@ +namenode: + image: bde2020/hadoop-namenode:1.0.0 + hostname: namenode + container_name: namenode + domainname: hadoop + net: hadoop + volumes: + - ./data/namenode:/hadoop/dfs/name + environment: + - CLUSTER_NAME=test + env_file: + - ./hadoop.env + +datanode1: + image: bde2020/hadoop-datanode:1.0.0 + hostname: datanode1 + container_name: datanode1 + domainname: hadoop + net: hadoop + volumes: + - ./data/datanode1:/hadoop/dfs/data + env_file: + - ./hadoop.env + +datanode2: + image: bde2020/hadoop-datanode:1.0.0 + hostname: datanode2 + container_name: datanode2 + domainname: hadoop + net: hadoop + volumes: + - ./data/datanode2:/hadoop/dfs/data + env_file: + - ./hadoop.env + +datanode3: + image: bde2020/hadoop-datanode:1.0.0 + hostname: datanode3 + container_name: datanode3 + domainname: hadoop + net: hadoop + volumes: + - ./data/datanode3:/hadoop/dfs/data + env_file: + - ./hadoop.env + +hive: + image: bde2020/hive + hostname: hive + container_name: hive + net: hadoop + volumes: + - ./data/hive:/hive-metastore + env_file: + - ./hadoop.env