Skip to content

Commit

Permalink
Remove old configuration of presto
Browse files Browse the repository at this point in the history
  • Loading branch information
yaalsn committed Nov 27, 2023
1 parent 36a09f7 commit 4cc440f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ spec:
{{- end }}
{{- else }}
- >-
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.internal-address=${HOSTNAME}.{{ template "presto.service" . }}.{{ template "pulsar.namespace" . }}.svc.cluster.local" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/config.properties ;
bin/pulsar sql-worker run \
--etc-dir={{ template "pulsar.home" . }}/trino/conf \
--data-dir={{ template "pulsar.home" . }}/data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ spec:
{{- end }}
{{- else }}
- >-
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.internal-address=${HOSTNAME}.{{ template "presto.worker.service" . }}.{{ template "pulsar.namespace" . }}.svc.cluster.local" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/config.properties ;
bin/pulsar sql-worker run \
--etc-dir={{ template "pulsar.home" . }}/trino/conf \
--data-dir={{ template "pulsar.home" . }}/data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ spec:
command: ["sh", "-c"]
args:
- >-
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.internal-address=$(echo ${POD_IP} | tr "." "-").{{ template "presto.service" . }}.{{ template "pulsar.namespace" . }}.svc.cluster.local" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/config.properties ;
{{- if .Values.tls.presto.enabled }}
set -ex;
mkdir -p /pulsar/jks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ spec:
command: ["sh", "-c"]
args:
- >-
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.internal-address=$(echo ${POD_IP} | tr "." "-").{{ template "presto.worker.service" . }}.{{ template "pulsar.namespace" . }}.svc.cluster.local" >> {{ template "pulsar.home" . }}/trino/conf/node.properties ;
echo "node.id=${HOSTNAME}" >> {{ template "pulsar.home" . }}/trino/conf/config.properties ;
{{- if .Values.tls.presto.enabled }}
set -ex;
mkdir -p /pulsar/jks;
Expand Down

0 comments on commit 4cc440f

Please sign in to comment.