File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 50
50
# K8s version 1.6 will fix this, per https://github.com/kubernetes/kubernetes/pull/29378.
51
51
- name : CORE_CONF_fs_defaultFS
52
52
value : hdfs://hdfs-namenode-0.hdfs-namenode.default.svc.cluster.local:8020
53
+ # We now add custom hadoop configuration provided
54
+ {{- range $key, $value := .Values.customHadoopConfig }}
55
+ {{- if and (ne $key "HDFS_CONF_dfs_datanode_data_dir") (ne $key "CORE_CONF_fs_defaultFS") }}
56
+ - name : {{ $key | quote }}
57
+ value : {{ $value | quote }}
58
+ {{- end }}
59
+ {{- end }}
53
60
livenessProbe :
54
61
initialDelaySeconds : 30
55
62
httpGet :
Original file line number Diff line number Diff line change 21
21
# e.g. --set "dataNodeHostPath={/hdfs-data,/hdfs-data1}"
22
22
dataNodeHostPath :
23
23
- /hdfs-data
24
+
25
+ # Custom hadoop config keys passed through env variables to hadoop uhopper images.
26
+ # See https://hub.docker.com/r/uhopper/hadoop/ to get more details
27
+ # Please note that these are not hadoop env variables, but docker env variables that
28
+ # will be transformed into hadoop config keys
29
+ # HDFS_CONF_dfs_datanode_data_dir and CORE_CONF_fs_defaultFS need special handling and
30
+ # they're already set by the chart so any value coming from below config will be ignored
31
+ customHadoopConfig : {}
32
+ # Set variables through a hash where env variable is the key, e.g.
33
+ # HDFS_CONF_dfs_datanode_use_datanode_hostname: "false"
Original file line number Diff line number Diff line change 53
53
env :
54
54
- name : CLUSTER_NAME
55
55
value : hdfs-k8s
56
+ # We now add custom hadoop configuration provided
57
+ {{- range $key, $value := .Values.customHadoopConfig }}
58
+ {{- if ne $key "CLUSTER_NAME" }}
59
+ - name : {{ $key | quote }}
60
+ value : {{ $value | quote }}
61
+ {{- end }}
62
+ {{- end }}
56
63
ports :
57
64
- containerPort : 8020
58
65
name : fs
Original file line number Diff line number Diff line change 19
19
# fsimage and edit logs. This will be mounted to the namenode as a k8s HostPath
20
20
# volume.
21
21
nameNodeHostPath : /hdfs-name
22
+
23
+ # Custom hadoop config keys passed through env variables to hadoop uhopper images.
24
+ # See https://hub.docker.com/r/uhopper/hadoop/ to get more details
25
+ # Please note that these are not hadoop env variables, but docker env variables that
26
+ # will be transformed into hadoop config keys
27
+ # CLUSTER_NAME is already set by the chart so any value coming from below config
28
+ # will be ignored
29
+ customHadoopConfig : {}
30
+ # Set variables through a hash where env variable is the key, e.g.
31
+ # HDFS_CONF_dfs_datanode_use_datanode_hostname: "false"
You can’t perform that action at this time.
0 commit comments