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

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

Patrick Wendell created SPARK-4532:
--------------------------------------

             Summary: 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