加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
ykbj 提交于 2018-06-28 16:52 . try
version: "3"
services:
namenode:
image: reg.dp.com:5000/docker-hadoop-namenode:v2.7.6
hostname: namenode
volumes:
- namenode_sshfs:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hadoop-hive.env
ports:
- "50070:50070"
- "8020:8020"
datanode:
image: reg.dp.com:5000/docker-hadoop-datanode:v2.7.6
hostname: datanode
volumes:
- datanode_sshfs:/hadoop/dfs/data
env_file:
- ./hadoop-hive.env
environment:
SERVICE_PRECONDITION: "namenode:50070"
ports:
- "50075:50075"
extra_hosts:
- "namenode:192.168.3.200"
hive-server:
image: reg.dp.com:5000/docker-hive:v2.3.2-hadoop2.7.6
env_file:
- ./hadoop-hive.env
environment:
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore"
SERVICE_PRECONDITION: "hive-metastore:9083"
ports:
- "10000:10000"
hive-metastore:
image: reg.dp.com:5000/docker-hive:v2.3.2-hadoop2.7.6
env_file:
- ./hadoop-hive.env
command: /opt/hive/bin/hive --service metastore
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 hive-metastore-postgresql:5432"
ports:
- "9083:9083"
hive-metastore-postgresql:
image: reg.dp.com:5000/docker-hive-metastore-postgresql:v2.3.0
volumes:
namenode_sshfs:
driver: vieux/sshfs:latest
driver_opts:
sshcmd: "root@192.168.3.201:/sshfs/namenode"
password: "10011001"
allow_other: ""
datanode_sshfs:
driver: vieux/sshfs:latest
driver_opts:
sshcmd: "root@192.168.3.201:/sshfs/datanode"
password: "10011001"
allow_other: ""
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化