You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2014/08/23 22:10:11 UTC

[jira] [Commented] (PHOENIX-1185) Make Phoenix build against Hortonworks HDP and Cloudera CDH without the user editing the pom.xml

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

James Taylor commented on PHOENIX-1185:
---------------------------------------

Please see PHOENIX-1199. The issue, I think, is that the phoenix-pig module was only compiled against the hadoop1 profile. Instead, it should be compiled against both, with separate jars built and placed in the phoenix-4.1.0-bin/hadoop1 and phoenix-4.1.0-bin/hadoop2 directories (instead of phoenix-4.1.0-bin/common).

Please try compiling the phoenix-pig module against the hadoop2 profile (which any pom changes) like this from the top level phoenix directory:
{code}
mvn package -Dhadoop.profile=2
{code}

Then replace your phoenix-pig/target/phoenix-pig-4.1.0.jar with this new one and see if it solves the issue you're running into.

> Make Phoenix build against Hortonworks HDP and Cloudera CDH without the user editing the pom.xml
> ------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-1185
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1185
>             Project: Phoenix
>          Issue Type: New Feature
>    Affects Versions: 4.0.0
>         Environment: CDH 4.X, 5.X
>            Reporter: Russell Jurney
>              Labels: cdh, cloudera, dependency, distribution, hdp, hortonworks, maven, pom, pom.xml
>
> Phoenix needs to build against Cloudera CDH and Hortonworks HDP Hadoop distributions, without the user editing the pom.xml to import CDH/HDP maven dependencies.
> For an example of the right way to handle commercial Hadoop distributions, see https://spark.apache.org/docs/latest/hadoop-third-party-distributions.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)