添加到docker-compose.yml StandBy nameNode

时间:2019-07-11 15:08:10

标签: docker hadoop docker-compose high-availability

添加到docker-compose.yml Standby nameNode。

任何人都可以建议以独立的docker容器表示的,在HA模式下针对Hadoop集群的完整决策(1代表dataNode,1代表nameNode,1代表standBYNameNode)

version: '3'

services:
  hadoop-namenode:
    image: 'uhopper/hadoop-namenode'
    hostname: hadoop-namenode
    ports:
      - "8020:8020"
      - '50070:50070'
    environment:
      - CLUSTER_NAME=hadoop-sandbox
      - HDFS_CONF_dfs_replication=1

  hadoop-datanode:
    image: "uhopper/hadoop-datanode"
    environment:
      - CORE_CONF_fs_defaultFS=hdfs://hadoop-namenode:8020
      - CLUSTER_NAME=hadoop-sandbox
      - HDFS_CONF_dfs_replication=1
    depends_on:
      - "hadoop-namenode"
efee

0 个答案:

没有答案