From 64b90b14442a19e38bbed6722064173f2ce39877 Mon Sep 17 00:00:00 2001 From: senmiaoliu Date: Tue, 31 Oct 2023 13:50:58 +0800 Subject: [PATCH] copy metadata sql to dist --- build/dist | 4 +++ kyuubi-assembly/assembly/assembly.xml | 36 ++++++++++++++++++++++ kyuubi-assembly/pom.xml | 24 +++++++++++++++ kyuubi-server/pom.xml | 21 +++++++++++++ kyuubi-server/src/assembly/assembly.xml | 40 +++++++++++++++++++++++++ 5 files changed, 125 insertions(+) create mode 100644 kyuubi-assembly/assembly/assembly.xml create mode 100644 kyuubi-server/src/assembly/assembly.xml diff --git a/build/dist b/build/dist index df9498008cb..7c7327f0955 100755 --- a/build/dist +++ b/build/dist @@ -249,6 +249,7 @@ mkdir -p "$DISTDIR/pid" mkdir -p "$DISTDIR/logs" mkdir -p "$DISTDIR/work" mkdir -p "$DISTDIR/jars" +mkdir -p "$DISTDIR/metastore-sql" mkdir -p "$DISTDIR/beeline-jars" mkdir -p "$DISTDIR/web-ui" mkdir -p "$DISTDIR/externals/engines/flink" @@ -270,6 +271,9 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE" # Copy kyuubi server jars cp -r "$KYUUBI_HOME"/kyuubi-assembly/target/scala-$SCALA_VERSION/jars/*.jar "$DISTDIR/jars/" +# Copy kyuubi metadata sql +cp -r "$KYUUBI_HOME"/kyuubi-assembly/target/kyuubi-assembly/metastore-sql/* "$DISTDIR/metastore-sql/" + # Copy kyuubi beeline jars cp "$KYUUBI_HOME"/kyuubi-hive-beeline/target/*.jar "$DISTDIR/beeline-jars/" diff --git a/kyuubi-assembly/assembly/assembly.xml b/kyuubi-assembly/assembly/assembly.xml new file mode 100644 index 00000000000..7baaf110168 --- /dev/null +++ b/kyuubi-assembly/assembly/assembly.xml @@ -0,0 +1,36 @@ + + + + + kyuubi-assembly + + dir + + false + + + + ${project.parent.basedir}/kyuubi-server/target/kyuubi-server/metastore-sql + + **/* + + metastore-sql + + + diff --git a/kyuubi-assembly/pom.xml b/kyuubi-assembly/pom.xml index 4fa0d9a0fd3..0b5d1aee379 100644 --- a/kyuubi-assembly/pom.xml +++ b/kyuubi-assembly/pom.xml @@ -120,4 +120,28 @@ log4j-1.2-api + + + + org.apache.maven.plugins + maven-assembly-plugin + + + assemble + + single + + package + + + assembly/assembly.xml + + kyuubi-assembly + false + + + + + + diff --git a/kyuubi-server/pom.xml b/kyuubi-server/pom.xml index 56155a27bec..f84d704deb6 100644 --- a/kyuubi-server/pom.xml +++ b/kyuubi-server/pom.xml @@ -581,6 +581,27 @@ + + + org.apache.maven.plugins + maven-assembly-plugin + + + assemble + + single + + package + + + src/assembly/assembly.xml + + kyuubi-server + false + + + + target/scala-${scala.binary.version}/classes target/scala-${scala.binary.version}/test-classes diff --git a/kyuubi-server/src/assembly/assembly.xml b/kyuubi-server/src/assembly/assembly.xml new file mode 100644 index 00000000000..374e0764bb5 --- /dev/null +++ b/kyuubi-server/src/assembly/assembly.xml @@ -0,0 +1,40 @@ + + + + + kyuubi-server + + + dir + + + kyuubi-server + + false + + + + ${project.basedir}/src/main/resources/sql + + **/* + + metastore-sql + + +