You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2022/03/02 05:14:00 UTC

[jira] [Commented] (HIVE-25995) Build from source distribution archive fails

    [ https://issues.apache.org/jira/browse/HIVE-25995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499893#comment-17499893 ] 

Ayush Saxena commented on HIVE-25995:
-------------------------------------

The problem lies in the src.xml 

Adding these two entries 
{noformat}
<include>udf/**/*</include>
<include>parser/**/*</include>
{noformat}
 In this include block : [https://github.com/apache/hive/blob/master/packaging/src/main/assembly/src.xml#L108-L109] solves two of the issue.

Standalone-metastore has entries like:
{noformat}
        <include>standalone-metastore/metastore-common/**/*</include>
        <include>standalone-metastore/metastore-server/**/*</include>
{noformat}
So, this misses the pom.xml and other files in standalone-metastore, so either we have an explicit entry for pom.xml, or we include the entire standalone-metastore directory, as of now metastore-tools is also not included, not sure if deliberately due to this include structure.

I added the udf & the parser, changed the standalone-metastore stuffs to include the complete directory. The build passes post that, but I feel the intent of the script somewhat is to prevent addition of {{metastore-tools}} from being copied(not sure why). If that is the case then we have to explicitly add the pom and other relevant files like LICENCE & NOTICE present in standalone-metastore

> Build from source distribution archive fails
> --------------------------------------------
>
>                 Key: HIVE-25995
>                 URL: https://issues.apache.org/jira/browse/HIVE-25995
>             Project: Hive
>          Issue Type: Bug
>          Components: Build Infrastructure
>            Reporter: Stamatis Zampetakis
>            Priority: Blocker
>
> The source distribution archive, apache-hive-4.0.0-SNAPSHOT-src.tar.gz, can be produced by running:
> {code:bash}
> mvn clean package -DskipTests -Pdist
> {code}
> The file is generated under:
> {noformat}
> packaging/target/apache-hive-4.0.0-SNAPSHOT-src.tar.gz
> {noformat}
> The source distribution archive/package [should|https://www.apache.org/legal/release-policy.html#source-packages] allow anyone who downloads it to build and test Hive.
> At the moment, on commit [b63dab11d229abac59a4ef5e141d8d9b28037c8b|https://github.com/apache/hive/commit/b63dab11d229abac59a4ef5e141d8d9b28037c8b], if someone produces the source package and extracts the contents of the archive, it is not possible to build Hive.
> Both {{mvn install}} and {{mvn package}} commands fail when they are executed inside the directory extracted from the archive.
> {noformat}
> mvn clean install -DskipTests
> mvn clean package -DskipTests
> {noformat}
> The error is shown below:
> {noformat}
> [INFO] Scanning for projects...
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [ERROR] Child module /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/parser of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist @ 
> [ERROR] Child module /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/udf of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist @ 
> [ERROR] Child module /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/standalone-metastore/pom.xml of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist @ 
>  @ 
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]   
> [ERROR]   The project org.apache.hive:hive:4.0.0-SNAPSHOT (/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml) has 3 errors
> [ERROR]     Child module /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/parser of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist
> [ERROR]     Child module /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/udf of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist
> [ERROR]     Child module /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/standalone-metastore/pom.xml of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)