Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4532

make-distribution in Spark 1.2 does not correctly detect whether Hive is enabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: Build
    • Labels:
      None
    • Target Version/s:

      Description

      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:

      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)
      

      We need to simply change it to this

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              pwendell Patrick Wendell
              Reporter:
              pwendell Patrick Wendell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: