From 54d13491ab62ebd26f5497dea9ec75d95eb3c694 Mon Sep 17 00:00:00 2001 From: Harutaka Kawamura Date: Fri, 9 Apr 2021 18:25:12 +0900 Subject: [PATCH] Set SPARK_LOCAL_IP to fix flaky spark session creation (#4233) * fix Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt2 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt3 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt4 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt5 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * Fix comment position Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * stop using local-cluster Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt2 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt3 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * try HIVE_SERVER2_THRIFT_BIND_HOST Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt2 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt3 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt4 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt5 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * set env in test step Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt2 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt3 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt4 Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * attempt Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> --- .github/workflows/master.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b856a89f66d82..c91c26106055b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -177,6 +177,9 @@ jobs: run: | source ./dev/install-common-deps.sh - name: Run tests + env: + # Fix for https://github.com/mlflow/mlflow/issues/4229 + SPARK_LOCAL_IP: 127.0.0.1 run: | export PATH="$CONDA_DIR/bin:$PATH" source activate test-environment @@ -198,6 +201,8 @@ jobs: run: | source ./dev/install-common-deps.sh - name: Run tests + env: + SPARK_LOCAL_IP: 127.0.0.1 run: | export PATH="$CONDA_DIR/bin:$PATH" source activate test-environment @@ -256,6 +261,8 @@ jobs: run: | source ./dev/install-common-deps.sh - name: Run tests + env: + SPARK_LOCAL_IP: 127.0.0.1 run: | export PATH="$CONDA_DIR/bin:$PATH" source activate test-environment @@ -295,6 +302,8 @@ jobs: run: | source ./dev/install-common-deps.sh - name: Run tests + env: + SPARK_LOCAL_IP: 127.0.0.1 run: | export PATH="$CONDA_DIR/bin:$PATH" source activate test-environment @@ -314,6 +323,8 @@ jobs: run: | source ./dev/install-common-deps.sh - name: Run tests + env: + SPARK_LOCAL_IP: 127.0.0.1 run: | export PATH="$CONDA_DIR/bin:$PATH" source activate test-environment