-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-hive.yml
executable file
·56 lines (51 loc) · 1.41 KB
/
docker-compose-hive.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.3'
services:
bigdata-hive1:
container_name: bigdata-hive1
build:
context: ./services/hive/2.3
image: yinfuyuan/hive:2.3.3
hostname: bigdata-hive1
ports:
- 50070:50070
- 8088:8088
- 19888:19888
external_links:
- bigdata-mysql1
environment:
HIVE_CLUSTER: "true"
HDFS_MASTER: "true"
YARN_MASTER: "true"
HISTORY_MASTER: "true"
HDFS_FS_DEFAULTFS: hdfs://bigdata-hive1:9000
HDFS_SLAVES: bigdata-hive2,bigdata-hive3
HDFS_DFS_REPLICATION: 2
YARN_RESOURCEMANAGER_HOSTNAME: bigdata-hive1
bigdata-hive2:
container_name: bigdata-hive2
build:
context: ./services/hive/2.3
image: yinfuyuan/hive:2.3.3
hostname: bigdata-hive2
external_links:
- bigdata-mysql1
environment:
HIVE_CLUSTER: "true"
HDFS_FS_DEFAULTFS: hdfs://bigdata-hive1:9000
HDFS_SLAVES: bigdata-hive2,bigdata-hive3
HDFS_DFS_REPLICATION: 2
YARN_RESOURCEMANAGER_HOSTNAME: bigdata-hive1
bigdata-hive3:
container_name: bigdata-hive3
build:
context: ./services/hive/2.3
image: yinfuyuan/hive:2.3.3
hostname: bigdata-hive3
external_links:
- bigdata-mysql1
environment:
HIVE_CLUSTER: "true"
HDFS_FS_DEFAULTFS: hdfs://bigdata-hive1:9000
HDFS_SLAVES: bigdata-hive2,bigdata-hive3
HDFS_DFS_REPLICATION: 2
YARN_RESOURCEMANAGER_HOSTNAME: bigdata-hive1