赞
踩
docker pull apachegriffin/griffin_spark2:0.3.0
docker pull apachegriffin/elasticsearch
docker pull apachegriffin/kafka
docker pull zookeeper:3.5
griffin: image: apachegriffin/griffin_spark2:0.3.0 # 下载的镜像名称 hostname: griffin # 设置的docker主机名 links: - es # 关联的其他docker的主机名 environment: # 配置环境变量 ES_HOSTNAME: es volumes: - /var/lib/mysql ports: #映射到docker外的端口号: docker内组件的端口号 - 32122:2122 - 38088:8088 # yarn rm web ui - 33306:3306 # mysql - 35432:5432 # postgres - 38042:8042 # yarn nm web ui - 39083:9083 # hive-metastore - 38998:8998 # livy - 38080:8080 # griffin ui tty: true container_name: griffin # docker名称 es: image: apachegriffin/elasticsearch hostname: es ports: - 39200:9200 - 39300:9300 container_name: es
在创建griffin-compose-batch.yml的文件目录下执行
docker-compose -f griffin-compose-batch.yml up -d
docker-compose -f docker-compose-streaming.yml up -d
执行成功,如下:
访问地址:http://localhost:38080/
注:第一次登陆页面,需要自定义用户名,密码。
docker pull apachegriffin/kafka
docker pull zookeeper:3.5
griffin: image: apachegriffin/griffin_spark2:0.3.0 hostname: griffin links: - es - zk - kafka environment: ES_HOSTNAME: es ZK_HOSTNAME: zk KAFKA_HOSTNAME: kafka volumes: - /var/lib/mysql ports: - 32122:2122 - 38088:8088 - 33306:3306 - 35432:5432 - 38042:8042 - 39083:9083 - 38998:8998 - 38080:8080 tty: true container_name: griffin es: image: apachegriffin/elasticsearch hostname: es ports: - 39200:9200 - 39300:9300 container_name: es zk: image: zookeeper:3.5 hostname: zk ports: - 32181:2181 container_name: zk restart: always kafka: image: apachegriffin/kafka hostname: kafka ports: - 39092:9092 container_name: kafka tty: true
在创建docker-compose-streaming.yml的文件目录下执行
docker-compose -f docker-compose-streaming.yml up -d
执行成功,如下:
访问地址:http://localhost:38080/
页面没啥变化,用户名密码还是第一次设置的。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。