hivefans

docker-hive-presto.yml

Jun 1st, 2021 (edited)
3,235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.45 KB | None | 0 0
  1. version: "3"
  2. services:
  3.     namenode:
  4.         image: bde2020/hadoop-namenode:2.0.0-hadoop3.2.1-java8
  5.         container_name: namenode
  6.         restart: always
  7.         volumes:
  8.            - hadoop_namenode:/hadoop/dfs/name
  9.         environment:
  10.            - CLUSTER_NAME=test
  11.         ports:
  12.            - 9870:9870
  13.             - 9000:9000
  14.         env_file:
  15.            - ./hadoop.env
  16.         networks:
  17.            - hadoop
  18.  
  19.     datanode:
  20.         image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8
  21.         container_name: datanode
  22.         restart: always
  23.         depends_on:
  24.             - namenode
  25.         volumes:
  26.            - hadoop_datanode:/hadoop/dfs/data
  27.         environment:
  28.             SERVICE_PRECONDITION: "namenode:9870"
  29.         ports:
  30.            - 9864:9864
  31.         env_file:
  32.            - ./hadoop.env
  33.         networks:
  34.            - hadoop
  35.  
  36.     resourcemanager:
  37.         image: bde2020/hadoop-resourcemanager:2.0.0-hadoop3.2.1-java8
  38.         container_name: resourcemanager
  39.         restart: always
  40.         environment:
  41.             SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864"
  42.         ports:
  43.            - 8088:8088
  44.         env_file:
  45.            - ./hadoop.env
  46.         networks:
  47.            - hadoop
  48.    
  49.     nodemanager:
  50.         image: bde2020/hadoop-nodemanager:2.0.0-hadoop3.2.1-java8
  51.         container_name: nodemanager
  52.         restart: always
  53.         environment:
  54.             SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
  55.         ports:
  56.            - 8042:8042
  57.         env_file:
  58.            - ./hadoop.env
  59.         networks:
  60.            - hadoop
  61.    
  62.     historyserver:
  63.         image: bde2020/hadoop-historyserver:2.0.0-hadoop3.2.1-java8
  64.         container_name: historyserver
  65.         restart: always
  66.         environment:
  67.             SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
  68.         volumes:
  69.            - hadoop_historyserver:/hadoop/yarn/timeline
  70.         ports:
  71.            - 8188:8188
  72.         env_file:
  73.            - ./hadoop.env
  74.         networks:
  75.            - hadoop
  76.    
  77.     hive-server:
  78.         image: bde2020/hive:2.3.2-postgresql-metastore
  79.         container_name: hive-server
  80.         restart: always
  81.         depends_on:
  82.             - namenode
  83.             - datanode
  84.         environment:
  85.             HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore"
  86.         ports:
  87.            - 10000:10000
  88.             - 10002:10002
  89.         env_file:
  90.            - ./hadoop.env
  91.         networks:
  92.            - hadoop
  93.    
  94.     hive-metastore:
  95.         image: bde2020/hive:2.3.2-postgresql-metastore
  96.         container_name: hive-metastore
  97.         restart: always
  98.         environment:
  99.             SERVICE_PRECONDITION: "namenode:9870 datanode:9864 hive-metastore-postgresql:5432"
  100.         command: /opt/hive/bin/hive --service metastore
  101.         ports:
  102.            - 9083:9083
  103.         env_file:
  104.            - ./hadoop.env
  105.         networks:
  106.            - hadoop
  107.    
  108.     hive-metastore-postgresql:
  109.         image: bde2020/hive-metastore-postgresql:2.3.0
  110.         container_name: hive-metastore-postgresql
  111.         volumes:
  112.            - hive_metastore:/var/lib/postgresql/data
  113.         networks:
  114.            - hadoop
  115.    
  116.     presto-coordinator:
  117.         image: shawnzhu/prestodb:0.181
  118.         container_name: presto-coordinator
  119.         ports:
  120.            - 8090:8080
  121.         networks:
  122.            - hadoop
  123.        
  124.     spark-master:
  125.         image: bde2020/spark-master:3.0.2-hadoop3.2
  126.         container_name: spark-master
  127.         depends_on:
  128.            - namenode
  129.             - datanode
  130.         environment:
  131.            - INIT_DAEMON_STEP=setup_spark
  132.         ports:
  133.            - 8080:8080
  134.             - 7077:7077
  135.             - 4040:4040
  136.             - 18080:18080
  137.         env_file:
  138.            - ./hadoop.env
  139.         networks:
  140.            - hadoop
  141.  
  142.     spark-worker:
  143.         image: bde2020/spark-worker:3.0.2-hadoop3.2
  144.         container_name: spark-worker
  145.         depends_on:
  146.            - spark-master
  147.         environment:
  148.            - "SPARK_MASTER=spark://spark-master:7077"
  149.         ports:
  150.            - 8081:8081
  151.         env_file:
  152.            - ./hadoop.env
  153.         networks:
  154.            - hadoop
  155.  
  156. volumes:
  157.     hadoop_namenode:
  158.     hadoop_datanode:
  159.     hadoop_historyserver:
  160.     hive_metastore:
  161. networks:
  162.     hadoop:
  163.         name: hadoop
Add Comment
Please, Sign In to add comment