phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PHOENIX-3139) phoenix-hive assembly target overwrites input jar
Date Tue, 02 Aug 2016 22:29:20 GMT

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

Josh Elser edited comment on PHOENIX-3139 at 8/2/16 10:29 PM:
--------------------------------------------------------------

Sure thing. I can try to take a look at this after applying PHOENIX-3126 and PHOENIX-3136.


was (Author: elserj):
Sure thing. I can try to take a look at this after PHOENIX-3126 and PHOENIX-3136.

> phoenix-hive assembly target overwrites input jar
> -------------------------------------------------
>
>                 Key: PHOENIX-3139
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3139
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.8.0
>            Reporter: Andrew Purtell
>
> There is a maven-assembly-plugin target in the phoenix-hive module POM not present in
other extension module POMs like for phoenix-pig or phoenix-flume.
> This assembly target creates a jar-with-dependencies assembly as phoenix-hive/target/phoenix-<version>-hive.jar.
I think that path is also an implicit input to the assembly as the output of the earlier compile
phase. I say that because I see the build failing with an odd error:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.2:single
> (make-jar-with-dependencies) on project phoenix-hive:
> Failed to create assembly:
> Error creating assembly archive jar-with-dependencies:
> Problem creating jar:
> jar:file:/.../phoenix-hive/target/phoenix-hive-<version>.jar!/org/apache/phoenix/hive/mapreduce/PhoenixRecordWriter.class:
> JAR entry org/apache/phoenix/hive/mapreduce/PhoenixRecordWriter.class not found in /.../phoenix-hive/target/phoenix-hive-<version>.jar
-
> {noformat}
> Makes sense that the archiver can't find a class file in a jar if a writer is racing
with a reader on the same file.
> What was the intent here? Commenting out the maven-assembly-plugin instructions in the
phoenix-hive POM fixes (or at least avoids) this problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message