phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Soldatov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3139) phoenix-hive assembly target failure
Date Tue, 02 Aug 2016 23:07:20 GMT

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

Sergey Soldatov commented on PHOENIX-3139:
------------------------------------------

[~apurtell] I remember some other products have such problem when install and package are
used at the same time. Not sure where I saw it.  Anyway, let me check whether it it's reproducible
on my side. 

> phoenix-hive assembly target failure
> ------------------------------------
>
>                 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