Skip to content

Commit c008f05

Browse files
authored
Merge pull request #15 from SentriusLLC/copilot/fix-qa-build-issues
Fix Alluxio environment variable syntax, image reference format, and ZooKeeper classpath in QA deployment
2 parents 1f45cac + f4e21c0 commit c008f05

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

charts/accumulo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ The chart supports multiple authentication methods:
215215
1. **Pods stuck in Pending**: Check resource requests and node capacity
216216
2. **Storage connection issues**: Verify cloud credentials and bucket permissions
217217
3. **Alluxio mount failures**: Check storage provider configuration
218+
4. **Alluxio "Invalid property key POD_IP"**: This error occurs when Alluxio configuration uses incorrect environment variable syntax. Ensure all environment variables in `alluxio-site.properties` use the `${env.VARIABLE_NAME}` format, not `${VARIABLE_NAME}`. For example, use `alluxio.master.hostname=${env.POD_IP}` instead of `alluxio.master.hostname=${POD_IP}`
218219

219220
### Debugging Commands
220221

charts/accumulo/templates/_helpers.tpl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,23 @@ Accumulo image
9494
*/}}
9595
{{- define "accumulo.image" -}}
9696
{{- $registry := .Values.global.imageRegistry | default .Values.accumulo.image.registry }}
97+
{{- if $registry }}
9798
{{- printf "%s/%s:%s" $registry .Values.accumulo.image.repository .Values.accumulo.image.tag }}
99+
{{- else }}
100+
{{- printf "%s:%s" .Values.accumulo.image.repository .Values.accumulo.image.tag }}
101+
{{- end }}
98102
{{- end }}
99103

100104
{{/*
101105
Alluxio image
102106
*/}}
103107
{{- define "alluxio.image" -}}
104108
{{- $registry := .Values.global.imageRegistry | default .Values.alluxio.image.registry }}
109+
{{- if $registry }}
105110
{{- printf "%s/%s:%s" $registry .Values.alluxio.image.repository .Values.alluxio.image.tag }}
111+
{{- else }}
112+
{{- printf "%s:%s" .Values.alluxio.image.repository .Values.alluxio.image.tag }}
113+
{{- end }}
106114
{{- end }}
107115

108116
{{/*
@@ -111,7 +119,7 @@ ZooKeeper connection string
111119
{{- define "accumulo.zookeeperHosts" -}}
112120
{{- if .Values.zookeeper.enabled }}
113121
{{- $fullname := include "accumulo.fullname" . }}
114-
{{- printf "%s-zookeeper:2181" $fullname }}
122+
{{- printf "%s-zookeeper-zookeeper:2181" $fullname }}
115123
{{- else }}
116124
{{- .Values.zookeeper.external.hosts }}
117125
{{- end }}

charts/accumulo/templates/alluxio-worker-daemonset.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ spec:
5656
- |
5757
# Wait for master to be ready
5858
echo "Waiting for Alluxio master to be ready..."
59-
until nc -z {{include "accumulo.fullname" .}}-alluxio-master 19998; do
59+
until (echo > /dev/tcp/accumulo-alluxio-master/19998) >/dev/null 2>&1; do
6060
echo "Waiting for master..."
6161
sleep 5
6262
done
6363
64+
6465
# Create directories
6566
mkdir -p /opt/ramdisk
6667
mkdir -p /opt/alluxio/logs
@@ -90,7 +91,7 @@ spec:
9091
containerPort: 30000
9192
protocol: TCP
9293
env:
93-
- name: ALLUXIO_WORKER_HOSTNAME
94+
- name: POD_IP
9495
valueFrom:
9596
fieldRef:
9697
fieldPath: status.podIP

charts/accumulo/templates/configmap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ data:
9090
CLASSPATH="${CLASSPATH}:${HADOOP_CONF_DIR}:${HADOOP_HOME}/share/hadoop/client/*"
9191
9292
# Add ZooKeeper libraries
93-
ZK_JARS=$(find "${ZOOKEEPER_HOME}/lib/" -maxdepth 1 -name '*.jar' -not -name '*slf4j*' -not -name '*log4j*' | paste -sd: -)
93+
ZK_JARS=$(find "${ZOOKEEPER_HOME}" -maxdepth 1 -name '*.jar' -not -name '*slf4j*' -not -name '*log4j*' | paste -sd: -)
9494
CLASSPATH="${CLASSPATH}:${ZOOKEEPER_HOME}/*:${ZK_JARS}"
9595
9696
export CLASSPATH
@@ -198,7 +198,7 @@ data:
198198
alluxio-site.properties: |
199199
# Alluxio configuration for Accumulo storage (Master)
200200
## Master configuration
201-
alluxio.master.hostname=${POD_IP}
201+
alluxio.master.hostname=${env.POD_IP}
202202
alluxio.master.port=19998
203203
alluxio.master.web.port=19999
204204
alluxio.master.journal.type=UFS
@@ -253,7 +253,7 @@ data:
253253
alluxio-site.properties: |
254254
# Alluxio configuration for Accumulo storage (Worker)
255255
## Worker configuration
256-
alluxio.worker.hostname=${ALLUXIO_WORKER_HOSTNAME}
256+
#alluxio.worker.hostname=${env.POD_IP}
257257
alluxio.worker.port=29999
258258
alluxio.worker.web.port=30000
259259
alluxio.worker.data.port=29999

0 commit comments

Comments
 (0)