Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/accumulo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ The chart supports multiple authentication methods:
1. **Pods stuck in Pending**: Check resource requests and node capacity
2. **Storage connection issues**: Verify cloud credentials and bucket permissions
3. **Alluxio mount failures**: Check storage provider configuration
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}`

### Debugging Commands

Expand Down
10 changes: 9 additions & 1 deletion charts/accumulo/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,23 @@ Accumulo image
*/}}
{{- define "accumulo.image" -}}
{{- $registry := .Values.global.imageRegistry | default .Values.accumulo.image.registry }}
{{- if $registry }}
{{- printf "%s/%s:%s" $registry .Values.accumulo.image.repository .Values.accumulo.image.tag }}
{{- else }}
{{- printf "%s:%s" .Values.accumulo.image.repository .Values.accumulo.image.tag }}
{{- end }}
{{- end }}

{{/*
Alluxio image
*/}}
{{- define "alluxio.image" -}}
{{- $registry := .Values.global.imageRegistry | default .Values.alluxio.image.registry }}
{{- if $registry }}
{{- printf "%s/%s:%s" $registry .Values.alluxio.image.repository .Values.alluxio.image.tag }}
{{- else }}
{{- printf "%s:%s" .Values.alluxio.image.repository .Values.alluxio.image.tag }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -111,7 +119,7 @@ ZooKeeper connection string
{{- define "accumulo.zookeeperHosts" -}}
{{- if .Values.zookeeper.enabled }}
{{- $fullname := include "accumulo.fullname" . }}
{{- printf "%s-zookeeper:2181" $fullname }}
{{- printf "%s-zookeeper-zookeeper:2181" $fullname }}
{{- else }}
{{- .Values.zookeeper.external.hosts }}
{{- end }}
Expand Down
5 changes: 3 additions & 2 deletions charts/accumulo/templates/alluxio-worker-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ spec:
- |
# Wait for master to be ready
echo "Waiting for Alluxio master to be ready..."
until nc -z {{include "accumulo.fullname" .}}-alluxio-master 19998; do
until (echo > /dev/tcp/accumulo-alluxio-master/19998) >/dev/null 2>&1; do
echo "Waiting for master..."
sleep 5
done


# Create directories
mkdir -p /opt/ramdisk
mkdir -p /opt/alluxio/logs
Expand Down Expand Up @@ -90,7 +91,7 @@ spec:
containerPort: 30000
protocol: TCP
env:
- name: ALLUXIO_WORKER_HOSTNAME
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
Expand Down
6 changes: 3 additions & 3 deletions charts/accumulo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ data:
CLASSPATH="${CLASSPATH}:${HADOOP_CONF_DIR}:${HADOOP_HOME}/share/hadoop/client/*"

# Add ZooKeeper libraries
ZK_JARS=$(find "${ZOOKEEPER_HOME}/lib/" -maxdepth 1 -name '*.jar' -not -name '*slf4j*' -not -name '*log4j*' | paste -sd: -)
ZK_JARS=$(find "${ZOOKEEPER_HOME}" -maxdepth 1 -name '*.jar' -not -name '*slf4j*' -not -name '*log4j*' | paste -sd: -)
CLASSPATH="${CLASSPATH}:${ZOOKEEPER_HOME}/*:${ZK_JARS}"

export CLASSPATH
Expand Down Expand Up @@ -198,7 +198,7 @@ data:
alluxio-site.properties: |
# Alluxio configuration for Accumulo storage (Master)
## Master configuration
alluxio.master.hostname=${POD_IP}
alluxio.master.hostname=${env.POD_IP}
alluxio.master.port=19998
alluxio.master.web.port=19999
alluxio.master.journal.type=UFS
Expand Down Expand Up @@ -253,7 +253,7 @@ data:
alluxio-site.properties: |
# Alluxio configuration for Accumulo storage (Worker)
## Worker configuration
alluxio.worker.hostname=${ALLUXIO_WORKER_HOSTNAME}
#alluxio.worker.hostname=${env.POD_IP}
alluxio.worker.port=29999
alluxio.worker.web.port=30000
alluxio.worker.data.port=29999
Expand Down