Skip to content

Commit 95b9578

Browse files
vvbogdanov87kimoonkim
authored andcommitted
Fix dfs.datanode.data.dir (#60)
1 parent 2e38e7e commit 95b9578

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/hdfs-config-k8s/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ last item does not have comma. It uses index 0 for the last item since that is
5151
the only special index that helm template gives us.
5252
*/}}
5353
{{- define "datanode-data-dirs" -}}
54-
{{- range $index, $path := .Values.dataNodeHostPath -}}
54+
{{- range $index, $path := .Values.global.dataNodeHostPath -}}
5555
{{- if ne $index 0 -}}
5656
/hadoop/dfs/data/{{ $index }},
5757
{{- end -}}
5858
{{- end -}}
59-
{{- range $index, $path := .Values.dataNodeHostPath -}}
59+
{{- range $index, $path := .Values.global.dataNodeHostPath -}}
6060
{{- if eq $index 0 -}}
6161
/hadoop/dfs/data/{{ $index }}
6262
{{- end -}}

charts/hdfs-config-k8s/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,6 @@ data:
192192
</property>
193193
<property>
194194
<name>dfs.datanode.data.dir</name>
195-
<value>{{ join "," .Values.global.dataNodeHostPath }}</value>
195+
<value>{{ template "datanode-data-dirs" . }}</value>
196196
</property>
197197
</configuration>

0 commit comments

Comments
 (0)