Skip to content

Commit

Permalink
Don't run hdfs on java
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Feb 5, 2024
1 parent dc62eae commit 4439803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/test_behavior/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ def generate_language_binding_cases(
) -> list[dict[str, str]]:
cases = unique_cases(cases)

# Remove hdfs cases for java.
if language == "java":
cases = [v for v in cases if v["service"] != "hdfs"]

if os.getenv("GITHUB_IS_PUSH") == "true":
return cases

Expand Down
18 changes: 0 additions & 18 deletions .github/services/hdfs/hdfs_default/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,6 @@ runs:
export HADOOP_HOME="/home/runner/hadoop-3.3.5"
export CLASSPATH=$(${HADOOP_HOME}/bin/hadoop classpath --glob)
# Inject local hdfs dependencies into pom.xml
POM_FILE="bindings/java/pom.xml"
IFS=':' read -ra ADDR <<< "$CLASSPATH"
for i in "${ADDR[@]}"; do
if [[ $i == *.jar ]]; then
JAR_NAME=$(basename "$i")
DEPENDENCY="<dependency>\n\
\t<groupId>local.dependency</groupId>\n\
\t<artifactId>${JAR_NAME%.*}</artifactId>\n\
\t<version>1.0</version>\n\
\t<scope>system</scope>\n\
\t<systemPath>\${project.basedir}/${i}</systemPath>\n\
</dependency>"
sed -i "/<\/dependencies>/i $DEPENDENCY" "$POM_FILE"
fi
done
cp ./fixtures/hdfs/hdfs-site.xml ${HADOOP_HOME}/etc/hadoop/hdfs-site.xml
cat << EOF >> $GITHUB_ENV
Expand Down

0 comments on commit 4439803

Please sign in to comment.