File tree Expand file tree Collapse file tree 4 files changed +8
-15
lines changed Expand file tree Collapse file tree 4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ HDFS `datanodes` running inside a kubernetes cluster. See the other chart for
29
29
of them below in --set as comma-separated entries)
30
30
31
31
```
32
- $ helm install -n my-hdfs-datanode --namespace kube-system \
32
+ $ helm install -n my-hdfs-datanode \
33
33
--set clusterDnsIP=YOUR-KUBE-DNS-IP hdfs-datanode-k8s
34
34
```
35
35
36
36
5 . Confirm the daemons are launched.
37
37
38
38
```
39
- $ kubectl get pods --all-namespaces | grep hdfs-datanode-
40
- kube-system hdfs-datanode-ajdcz 1/1 Running 0 7m
41
- kube-system hdfs-datanode-f1w24 1/1 Running 0 7m
39
+ $ kubectl get pods | grep hdfs-datanode-
40
+ hdfs-datanode-ajdcz 1/1 Running 0 7m
41
+ hdfs-datanode-f1w24 1/1 Running 0 7m
42
42
```
43
43
44
44
` Datanode ` daemons run on every cluster node. They also mount k8s ` hostPath `
@@ -47,7 +47,7 @@ local disk volumes.
47
47
` Datanodes ` are using ` hostNetwork ` to register to ` namenode ` using
48
48
physical IPs.
49
49
50
- Note they run under the ` kube-system ` namespace.
50
+ Note they run under the ` default ` namespace.
51
51
52
52
###Credits
53
53
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ apiVersion: v1
16
16
kind : ConfigMap
17
17
metadata :
18
18
name : resolv-conf-datanode
19
- namespace : kube-system
20
19
data :
21
20
resolv.conf : |
22
21
search kube-system.svc.{{ .Values.clusterDomain }} svc.{{ .Values.clusterDomain }} {{ .Values.clusterDomain }}
@@ -29,7 +28,6 @@ apiVersion: extensions/v1beta1
29
28
kind : DaemonSet
30
29
metadata :
31
30
name : hdfs-datanode
32
- namespace : kube-system
33
31
spec :
34
32
template :
35
33
metadata :
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ HDFS `namenode` running inside a kubernetes cluster. See the other chart for
20
20
2 . Launch this helm chart, ` hdfs-namenode-k8s ` .
21
21
22
22
```
23
- $ helm install -n my-hdfs-namenode --namespace kube-system hdfs-k8s
23
+ $ helm install -n my-hdfs-namenode hdfs-k8s
24
24
```
25
25
26
26
3 . Confirm the daemon is launched.
27
27
28
28
```
29
- $ kubectl get pods --all-namespaces | grep hdfs-namenode
30
- kube-system hdfs-namenode-0 1/1 Running 0 7m
29
+ $ kubectl get pods | grep hdfs-namenode
30
+ hdfs-namenode-0 1/1 Running 0 7m
31
31
```
32
32
33
33
There will be only one ` namenode ` instance. i.e. High Availability (HA) is not
@@ -38,8 +38,6 @@ mount a local disk directory using k8s `hostPath` volume.
38
38
` namenode ` is using ` hostNetwork ` so it can see physical IPs of datanodes
39
39
without an overlay network such as weave-net mask them.
40
40
41
- Note it runs under the ` kube-system ` namespace.
42
-
43
41
###Credits
44
42
45
43
This chart is using public Hadoop docker images hosted by
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ apiVersion: v1
18
18
kind : Service
19
19
metadata :
20
20
name : hdfs-namenode
21
- namespace : kube-system
22
21
labels :
23
22
app : hdfs-namenode
24
23
spec :
@@ -33,7 +32,6 @@ apiVersion: apps/v1beta1
33
32
kind : StatefulSet
34
33
metadata :
35
34
name : hdfs-namenode
36
- namespace : kube-system
37
35
spec :
38
36
serviceName : " hdfs-namenode"
39
37
# Create a size-1 set. The namenode DNS name will be
48
46
# like weave. Otherwise, namenode fails to see physical IP address of datanodes.
49
47
hostNetwork : true
50
48
hostPID : true
51
- terminationGracePeriodSeconds : 0
52
49
containers :
53
50
- name : hdfs-namenode
54
51
image : uhopper/hadoop-namenode:2.7.2
You can’t perform that action at this time.
0 commit comments