-
Notifications
You must be signed in to change notification settings - Fork 11
/
hdfs.yaml
74 lines (74 loc) · 1.67 KB
/
hdfs.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
apiVersion: v1
kind: Service
metadata:
name: hdfs-namenode
spec:
ports:
- name: client
port: 8020
selector:
app: hdfs
type: namenode
---
apiVersion: v1
kind: ReplicationController
metadata:
name: hdfs-namenode
spec:
replicas: 1
template:
metadata:
labels:
app: hdfs
type: namenode
spec:
volumes:
- name: data
emptyDir: {}
containers:
- name: namenode
image: uhopper/hadoop-namenode:2.7.2
env:
- name: CLUSTER_NAME
value: hadoop
- name: HDFS_CONF_dfs_namenode_datanode_registration_ip___hostname___check
value: "false"
- name: MULTIHOMED_NETWORK
value: "0"
ports:
- containerPort: 50070
- containerPort: 8020
volumeMounts:
- mountPath: /hadoop/dfs/data
name: data
---
apiVersion: v1
kind: ReplicationController
metadata:
name: hdfs-datanode
spec:
replicas: 1
template:
metadata:
labels:
app: hdfs
type: datanode
spec:
volumes:
- name: data
emptyDir: {}
containers:
- name: datanode
image: uhopper/hadoop-datanode:2.7.2
env:
- name: CORE_CONF_fs_defaultFS
value: hdfs://hdfs-namenode.presto:8020
- name: HDFS_CONF_dfs_namenode_datanode_registration_ip___hostname___check
value: "false"
ports:
- containerPort: 50075
- containerPort: 50010
- containerPort: 50020
volumeMounts:
- mountPath: /hadoop/dfs/data
name: data