Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14289

can't reliably specify hadoop.version for maven build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • maven 3.3.9

    Description

      if someone would like to build against a different hadoop.version; it looks straightforward to use -Dhadoop.version=.... however this doesn't "fully" override the default value of the hadoop.version maven property.

      steps to reproduce:

      • change hadoop.version to some nonsence:
        sed -i "/hadoop.version.*hadoop.version/s|.*|<hadoop.version>nonexistentt</hadoop.version>|" pom.xml
        
      • specify a valid hadoop.version from the commandline:
        mvn clean package -DskipTests -Dhadoop.version=2.6.1
        

      i'm not sure..but from -X output i've seen:

      [DEBUG] Ant property 'hadoop.version=2.6.1' clashs with an existing Maven property, SKIPPING this Ant pr
      operty propagation.
      

      the build will fail..or at least it fails for me..

      Attachments

        1. experimental.patch
          1 kB
          Zoltan Haindrich

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kgyrtkirk Zoltan Haindrich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: