Skip to content

Commit

Permalink
Use ALLUXIO_FUSE_OPTS when creating FUSE container
Browse files Browse the repository at this point in the history
This intends to resolve the below issues by fixing how
ALLUXIO_FUSE_JAVA_OPTS is generated and exported
Alluxio#11899
Alluxio#11802

pr-link: Alluxio#11971
change-id: cid-9c8e1a254b071986982323e65ea5b333c592de97
  • Loading branch information
jiacheliu3 authored Aug 18, 2020
1 parent eb9e8fe commit 9be8860
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions integration/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ALLUXIO_ENV_VARS=(
ALLUXIO_WORKER_JAVA_OPTS
ALLUXIO_JOB_MASTER_JAVA_OPTS
ALLUXIO_JOB_WORKER_JAVA_OPTS
ALLUXIO_FUSE_JAVA_OPTS
)

function printUsage {
Expand Down
4 changes: 4 additions & 0 deletions integration/kubernetes/helm-chart/alluxio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,7 @@
0.6.10

- Change liveness and readiness probes to TCP probes

0.6.11

- Pass alluxio.user.hostname via ALLUXIO_FUSE_JAVA_OPTS for FUSE
2 changes: 1 addition & 1 deletion integration/kubernetes/helm-chart/alluxio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name: alluxio
apiVersion: v1
description: Open source data orchestration for analytics and machine learning in any cloud.
version: 0.6.10
version: 0.6.11
home: https://www.alluxio.io/
maintainers:
- name: Adit Madan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
{{- /* ALLUXIO_FUSE_JAVA_OPTS */}}
{{- /* ===================================== */}}
{{- $fuseJavaOpts := list }}
{{- $fuseJavaOpts = print "-Dalluxio.user.hostname=${ALLUXIO_CLIENT_HOSTNAME}" | append $fuseJavaOpts }}
{{- range $key, $val := .Values.fuse.properties }}
{{- $fuseJavaOpts = printf "-D%v=%v" $key $val | append $fuseJavaOpts }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: ALLUXIO_USER_JAVA_OPTS
value: " -Dalluxio.user.hostname=${ALLUXIO_CLIENT_HOSTNAME} "
{{- range $key, $value := .Values.fuse.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down

0 comments on commit 9be8860

Please sign in to comment.