From a9d05391110bf70ad6bb6b576beb470a0eeeddea Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 5 Feb 2024 11:01:33 +0800 Subject: [PATCH] trick for mvn Signed-off-by: Xuanwo --- .github/services/hdfs/hdfs_default/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/services/hdfs/hdfs_default/action.yml b/.github/services/hdfs/hdfs_default/action.yml index d4bdce0765d1..ce09a4d31984 100644 --- a/.github/services/hdfs/hdfs_default/action.yml +++ b/.github/services/hdfs/hdfs_default/action.yml @@ -33,12 +33,15 @@ runs: export HADOOP_HOME="/home/runner/hadoop-3.3.5" export CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath --glob) + # Trick for mvn to make sure CLASSPATH from hadoop is set + export MAVEN_OPTS="-cp $CLASSPATH" cp ./fixtures/hdfs/hdfs-site.xml ${HADOOP_HOME}/etc/hadoop/hdfs-site.xml cat << EOF >> $GITHUB_ENV HADOOP_HOME=${HADOOP_HOME} CLASSPATH=${CLASSPATH} + MAVEN_OPTS=${MAVEN_OPTS} LD_LIBRARY_PATH=${JAVA_HOME}/lib/server:${HADOOP_HOME}/lib/native OPENDAL_HDFS_ROOT=/tmp/opendal/ OPENDAL_HDFS_NAME_NODE=default