From 12becec332d5418930a992a6131a46936386d9e3 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 17 Oct 2023 17:20:57 +0800 Subject: [PATCH] ci: Fix HDFS test (#3320) Signed-off-by: Xuanwo --- .github/workflows/service_test_hdfs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/service_test_hdfs.yml b/.github/workflows/service_test_hdfs.yml index abfe236cc077..112f00fa9257 100644 --- a/.github/workflows/service_test_hdfs.yml +++ b/.github/workflows/service_test_hdfs.yml @@ -61,11 +61,12 @@ jobs: shell: bash working-directory: core run: | - export CLASSPATH=$(find $HADOOP_HOME -iname "*.jar" | xargs echo | tr ' ' ':') + export CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath --glob) + export LD_LIBRARY_PATH=${{ env.JAVA_HOME }}/lib/server:${{ env.HADOOP_HOME }}/lib/native + cargo test services_hdfs --features services-hdfs env: HADOOP_HOME: "/home/runner/hadoop-3.3.5" - LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }} OPENDAL_HDFS_TEST: on OPENDAL_HDFS_ROOT: /tmp/opendal/ OPENDAL_HDFS_NAME_NODE: default @@ -119,11 +120,11 @@ jobs: working-directory: core run: | export CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath --glob) + export LD_LIBRARY_PATH=${{ env.JAVA_HOME }}/lib/server:${{ env.HADOOP_HOME }}/lib/native cargo test services_hdfs --features services-hdfs env: HADOOP_HOME: "/home/runner/hadoop-3.2.4" - LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.HADOOP_HOME }}/lib/native:${{ env.LD_LIBRARY_PATH }} OPENDAL_HDFS_TEST: on OPENDAL_HDFS_ROOT: /tmp/opendal/ OPENDAL_HDFS_NAME_NODE: hdfs://localhost:8020