# Copyright 2020 Crown Copyright # # Licensed 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. version: "3.7" services: hdfs-namenode: image: melodydocker/hdfs:latest # image: gchq/hdfs:3.2.1 build: context: . args: HADOOP_VERSION: 3.2.1 command: namenode container_name: hdfs-namenode hostname: hdfs-namenode-svc environment: - HADOOP_CONF_DIR=/etc/hadoop/conf ports: - 9870:9870 volumes: - ./conf:/etc/hadoop/conf:ro - /var/log/hadoop - /data1 - /data2 hdfs-datanode: depends_on: - hdfs-namenode image: melodydocker/hdfs:latest command: datanode container_name: hdfs-datanode-svc hostname: hdfs-datanode environment: - HADOOP_CONF_DIR=/etc/hadoop/conf volumes: - ./conf:/etc/hadoop/conf:ro - /var/log/hadoop - /data1 - /data2