You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/11/21 07:56:33 UTC

[jira] [Commented] (SPARK-4532) make-distribution in Spark 1.2 does not correctly detect whether Hive is enabled

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

Apache Spark commented on SPARK-4532:
-------------------------------------

User 'pwendell' has created a pull request for this issue:
https://github.com/apache/spark/pull/3398

> make-distribution in Spark 1.2 does not correctly detect whether Hive is enabled
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-4532
>                 URL: https://issues.apache.org/jira/browse/SPARK-4532
>             Project: Spark
>          Issue Type: Bug
>          Components: Build
>            Reporter: Patrick Wendell
>            Assignee: Patrick Wendell
>            Priority: Blocker
>
> I noticed that Hive support isn't working in the recent release artifacts. Because the hive profile is no longer defined in the root pom, the following doesn't work:
> {code}
> SPARK_HIVE=$(mvn help:evaluate -Dexpression=project.activeProfiles $@ 2>/dev/null\
>     | grep -v "INFO"\
>     | fgrep --count "<id>hive</id>";\
>     # Reset exit status to 0, otherwise the script stops here if the last grep finds nothing\
>     # because we use "set -o pipefail"
>     echo -n)
> {code}
> We need to simply change it to this
> {code}
> SPARK_HIVE=$(mvn help:evaluate -Dexpression=project.activeProfiles -pl sql/hive $@ 2>/dev/null\
>     | grep -v "INFO"\
>     | fgrep --count "<id>hive</id>";\
>     # Reset exit status to 0, otherwise the script stops here if the last grep finds nothing\
>     # because we use "set -o pipefail"
>     echo -n)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org