File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
charts/hdfs-config-k8s/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ last item does not have comma. It uses index 0 for the last item since that is
5151the 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 -} }
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments