From 3b7f995fc0f284ea389f1c83eb2410e7a1f659d3 Mon Sep 17 00:00:00 2001 From: Lev Pachmanov <31389480+levpachmanov@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:00:11 +0200 Subject: [PATCH] Update setup_beam_on_spark.sh Actually fix CVE-2018-17190 --- tfx/examples/penguin/setup/setup_beam_on_spark.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tfx/examples/penguin/setup/setup_beam_on_spark.sh b/tfx/examples/penguin/setup/setup_beam_on_spark.sh index 05aa375b0a..56614396ee 100755 --- a/tfx/examples/penguin/setup/setup_beam_on_spark.sh +++ b/tfx/examples/penguin/setup/setup_beam_on_spark.sh @@ -52,9 +52,9 @@ function start_spark() { ./sbin/stop-all.sh # Authenticate to avoid CVE-2018-17190 # https://spark.apache.org/security.html - echo -e "spark.authenticate true" > $SPARK_CONF - echo -e "spark.authenticate.secret $SPARK_SECRET" > $SPARK_CONF - echo -e "spark.master.rest.enabled true" > $SPARK_CONF + echo -e "spark.authenticate true" >> $SPARK_CONF + echo -e "spark.authenticate.secret $SPARK_SECRET" >> $SPARK_CONF + echo -e "spark.master.rest.enabled true" >> $SPARK_CONF # default web UI port (8080) is also used by Airflow ./sbin/start-master.sh -h $SPARK_HOST -p $SPARK_PORT --webui-port 8081 --properties-file $SPARK_CONF ./sbin/start-slave.sh $SPARK_LEADER_URL --properties-file $SPARK_CONF