From 82cca0e481daae98cd97d02331b5cde23cb1239c Mon Sep 17 00:00:00 2001 From: zwangsheng <2213335496@qq.com> Date: Mon, 8 Nov 2021 17:10:07 +0800 Subject: [PATCH] [KYUUBI #1350] [BUILD] Put spark-block-cleaner jar into sub dir kubernetes ### _Why are the changes needed?_ Before PR, when you add profile `spark-block-cleaner`, you will get catalog list like ![POPO20211108-152830](https://user-images.githubusercontent.com/52876270/140700856-71f482ae-81b8-4c2e-a963-11c284a61e68.jpg) You can observe that Kubernetes is an empty directory, and docker is created on its same layer. After PR, ![popo_2021-11-08 15-30-53](https://user-images.githubusercontent.com/52876270/140701162-302f5334-9332-49f4-bce4-addc2902369d.jpg) ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1350 from zwangsheng/fix/mv_docker_into_kubernetes. Closes #1350 533fa13f [zwangsheng] mvn docker into kubernetes Authored-by: zwangsheng <2213335496@qq.com> Signed-off-by: ulysses-you --- build/dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/dist b/build/dist index 27310d974..8bb20e0af 100755 --- a/build/dist +++ b/build/dist @@ -196,7 +196,7 @@ cp "$KYUUBI_HOME/externals/kyuubi-spark-sql-engine/target/kyuubi-spark-sql-engin if [[ -f "$KYUUBI_HOME/tools/spark-block-cleaner/target/spark-block-cleaner_${SCALA_VERSION}-${VERSION}.jar" ]]; then mkdir -p "$DISTDIR/tools/spark-block-cleaner/kubernetes" mkdir -p "$DISTDIR/tools/spark-block-cleaner/jars" - cp -r "$KYUUBI_HOME/tools/spark-block-cleaner/kubernetes/" "$DISTDIR/tools/spark-block-cleaner/" + cp -r "$KYUUBI_HOME/tools/spark-block-cleaner/kubernetes/" "$DISTDIR/tools/spark-block-cleaner/kubernetes/" cp "$KYUUBI_HOME/tools/spark-block-cleaner/target/spark-block-cleaner_${SCALA_VERSION}-${VERSION}.jar" "$DISTDIR/tools/spark-block-cleaner/jars/" fi