[ 
https://issues.apache.org/jira/browse/SPARK-4532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Wendell resolved SPARK-4532.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

> 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
>             Fix For: 1.2.0
>
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to