Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ kafka-handler/src/test/gen
dependency-reduced-pom.xml
**/.mvn/.develocity*
packaging/cache
standalone-metastore/packaging/cache
6 changes: 3 additions & 3 deletions packaging/src/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ ARG HADOOP_VERSION
ARG HIVE_VERSION
ARG TEZ_VERSION
ONBUILD RUN apt-get update && apt-get -y install wget
ONBUILD RUN wget https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
ONBUILD RUN wget https://downloads.apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
wget https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz && \
wget https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
wget https://downloads.apache.org/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz
ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
mv hadoop-$HADOOP_VERSION.tar.gz /opt && \
mv apache-hive-$HIVE_VERSION-bin.tar.gz /opt
Expand All @@ -38,7 +38,7 @@ ARG HADOOP_VERSION
ARG HIVE_VERSION
ARG TEZ_VERSION
ONBUILD RUN apt-get update && apt-get -y install wget
ONBUILD RUN wget https://archive.apache.org/dist/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
ONBUILD RUN wget https://downloads.apache.org/tez/$TEZ_VERSION/apache-tez-$TEZ_VERSION-bin.tar.gz && \
wget https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz
ONBUILD COPY ./apache-hive-$HIVE_VERSION-bin.tar.gz /opt
ONBUILD RUN mv /apache-tez-$TEZ_VERSION-bin.tar.gz /opt && \
Expand Down
4 changes: 2 additions & 2 deletions packaging/src/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if [ ! -f "$CACHE_DIR/$HADOOP_FILE_NAME" ]; then
fi

TEZ_FILE_NAME="apache-tez-$TEZ_VERSION-bin.tar.gz"
TEZ_URL=${TEZ_URL:-"https://archive.apache.org/dist/tez/$TEZ_VERSION/$TEZ_FILE_NAME"}
TEZ_URL=${TEZ_URL:-"https://downloads.apache.org/tez/$TEZ_VERSION/$TEZ_FILE_NAME"}
if [ ! -f "$CACHE_DIR/$TEZ_FILE_NAME" ]; then
echo "Downloading Tez from $TEZ_URL..."
if ! curl --fail -L "$TEZ_URL" -o "$CACHE_DIR/$TEZ_FILE_NAME.tmp"; then
Expand All @@ -98,7 +98,7 @@ fi
if [ -n "$HIVE_VERSION" ]; then
HIVE_FILE_NAME="apache-hive-$HIVE_VERSION-bin.tar.gz"
if [ ! -f "$CACHE_DIR/$HIVE_FILE_NAME" ]; then
HIVE_URL=${HIVE_URL:-"https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/$HIVE_FILE_NAME"}
HIVE_URL=${HIVE_URL:-"https://downloads.apache.org/hive/hive-$HIVE_VERSION/$HIVE_FILE_NAME"}
echo "Downloading Hive from $HIVE_URL..."
if ! curl --fail -L "$HIVE_URL" -o "$CACHE_DIR/$HIVE_FILE_NAME.tmp"; then
echo "Failed to download Hive, exiting..."
Expand Down
3 changes: 3 additions & 0 deletions packaging/src/main/assembly/src.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@
<exclude>**/.project</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/thirdparty/**</exclude>
<exclude>packaging/cache/**</exclude>
<exclude>standalone-metastore/metastore-common/src/gen/version/**</exclude>
<exclude>standalone-metastore/metastore-server/src/gen/**</exclude>
<exclude>common/src/gen/**</exclude>
<exclude>kafka-handler/src/test/gen/**</exclude>
<exclude>conf/hive-default.xml.template</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>standalone-metastore/packaging/cache/**</exclude>
</excludes>

<includes>
Expand Down Expand Up @@ -106,6 +108,7 @@
<include>standalone-metastore/metastore-server/**/*</include>
<include>standalone-metastore/metastore-tools/**/*</include>
<include>standalone-metastore/metastore-rest-catalog/**/*</include>
<include>standalone-metastore/packaging/**/*</include>
<include>standalone-metastore/src/assembly/src.xml</include>
<include>standalone-metastore/pom.xml</include>
<include>streaming/**/*</include>
Expand Down
94 changes: 0 additions & 94 deletions standalone-metastore/metastore-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,80 +491,6 @@
</plugins>
</reporting>
</profile>
<profile>
<id>add-extra-deps</id>
<activation>
<property>
<name>allModules</name>
<value>true</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>${hive.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-standalone-metastore-rest-catalog</artifactId>
<version>${hive.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-iceberg-catalog</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>${project.version}</version>
<classifier>core</classifier>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-iceberg-handler</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>
<profile>
<id>docker</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>build-docker-image</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>bash</executable>
<environmentVariables>
<SOURCE_DIR>${standalone.metastore.path.to.root}</SOURCE_DIR>
</environmentVariables>
<arguments>
<argument>src/docker/build.sh</argument>
<argument>-hadoop ${hadoop.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
<profile>
<id>checkin</id>
Expand Down Expand Up @@ -695,26 +621,6 @@
</executions>
</plugin>
<!-- TODO MS-SPLIT javadoc plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>apache-${project.artifactId}-${project.version}</finalName>
<descriptors>
<descriptor>src/assembly/bin.xml</descriptor>
</descriptors>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down
220 changes: 220 additions & 0 deletions standalone-metastore/packaging/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.hive</groupId>
<artifactId>hive-standalone-metastore</artifactId>
<version>4.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hive-metastore-packaging</artifactId>
<packaging>pom</packaging>
<name>Hive Metastore Packaging</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<standalone.metastore.path.to.root>..</standalone.metastore.path.to.root>
<maven.license.plugin.version>2.3.0</maven.license.plugin.version>
</properties>
<profiles>
<profile>
<id>dist</id>
<build>
<plugins>
<!-- plugins are always listed in sorted order by groupId, artifactId -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${project.parent.artifactId}-${project.version}</finalName>
<descriptors>
<descriptor>src/assembly/bin.xml</descriptor>
<descriptor>src/assembly/src.xml</descriptor>
</descriptors>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>create-bin-license</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<concat destfile="${project.build.directory}/generated-resources/LICENSE" force="yes">
<fileset dir="../">
<include name="LICENSE"/>
<include name="LICENSE-binary"/>
</fileset>
</concat>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${maven.license.plugin.version}</version>
<executions>
<execution>
<id>license-fetch</id>
<phase>generate-resources</phase>
<goals>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
<configuration>
<includeOptional>false</includeOptional>
<artifactFiltersUrl>${project.baseUri}/src/license/artifact-filters.txt</artifactFiltersUrl>
<excludeTransitiveDependencies>true</excludeTransitiveDependencies>
<useDefaultUrlReplacements>true</useDefaultUrlReplacements>
<licenseUrlReplacements>
<licenseUrlReplacements>
<regexp>https?://glassfish(.dev)?\.java\.net/.*CDDL.*</regexp>
<replacement>https://spdx.org/licenses/CDDL-1.1.html</replacement>
</licenseUrlReplacements>
<licenseUrlReplacement>
<regexp>https?://asm\.objectweb\.org/license.html</regexp>
<replacement>https://asm.ow2.io/license.html</replacement>
</licenseUrlReplacement>
<licenseUrlReplacement>
<regexp>http://(www\.)?antlr.org/license.html</regexp>
<replacement>http://www.antlr.org/license.html</replacement>
</licenseUrlReplacement>
</licenseUrlReplacements>
<licenseUrlFileNames>
<APACHE-2.0>
https?://www\.apache\.org/licenses/LICENSE-2\.0.*
\Qhttps://aws.amazon.com/apache2.0\E
\Qhttps://opensource.org/licenses/Apache-2.0\E
\Qhttp://www.apache.org/licenses/\E
</APACHE-2.0>
<BSD-2-CLAUSE>
https?://(www\.)?opensource.org/licenses/bsd-license.php
https?://(www\.)?opensource.org/licenses/BSD-2-Clause
</BSD-2-CLAUSE>
<BSD-3-CLAUSE>
https?://(www\.)?opensource.org/licenses/BSD-3-Clause
</BSD-3-CLAUSE>
<LGPL-3.0-only>
\Qhttp://www.fsf.org/licensing/licenses/lgpl.txt\E
\Qhttp://www.gnu.org/licenses/lgpl-3.0.txt\E
</LGPL-3.0-only>
<EPL-1.0>
\Qhttps://www.eclipse.org/org/documents/epl-v10.php\E
\Qhttp://www.eclipse.org/org/documents/epl-v10.php\E
</EPL-1.0>
<EPL-2.0>
\Qhttps://raw.githubusercontent.com/locationtech/jts/master/LICENSE_EPLv2.txt\E
\Qhttps://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt\E
</EPL-2.0>
<EDL-1.0>
\Qhttps://www.eclipse.org/org/documents/edl-v10.php\E
\Qhttp://www.eclipse.org/org/documents/edl-v10.php\E
</EDL-1.0>
<MIT>
https?://(www\.)?opensource\.org/licenses/mit(-license.php)?
</MIT>
</licenseUrlFileNames>
<licenseUrlFileNameSanitizers>
<licenseUrlFileNameSanitizer>
<regexp>[\s-_,]+</regexp>
<replacement>-</replacement>
</licenseUrlFileNameSanitizer>
</licenseUrlFileNameSanitizers>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>docker</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>bash</executable>
<environmentVariables>
<SOURCE_DIR>${standalone.metastore.path.to.root}</SOURCE_DIR>
</environmentVariables>
<arguments>
<argument>src/docker/build.sh</argument>
<argument>-hadoop ${hadoop.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-metastore</artifactId>
<version>${hive.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-standalone-metastore-rest-catalog</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-iceberg-catalog</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
<version>${hive.version}</version>
<classifier>core</classifier>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-iceberg-handler</artifactId>
<version>${hive.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.hive</groupId>
<artifactId>hive-exec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-standalone-metastore-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-standalone-metastore-server</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
Loading
Loading