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

Maven "hadoop*" Profiles Should Set the expected Hadoop Version.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Build
    • None

    Description

      The Maven Profiles that refer to hadoopX, e.g. hadoop2.4, should set the expected hadoop.version.

      e.g.

      <profile>
            <id>hadoop-2.4</id>
            <properties>
              <protobuf.version>2.5.0</protobuf.version>
              <jets3t.version>0.9.0</jets3t.version>
            </properties>
      </profile>
      

      as it is suggested

      <profile>
            <id>hadoop-2.4</id>
            <properties>
              <hadoop.version>2.4.0</hadoop.version>
               <yarn.version>${hadoop.version}</yarn.version>
              <protobuf.version>2.5.0</protobuf.version>
              <jets3t.version>0.9.0</jets3t.version>
            </properties>
      </profile>
      

      Builds can still define the -Dhadoop.version option but this will correctly default the Hadoop Version to the one that is expected according the profile that is selected.

      e.g.

      $ mvn -P hadoop-2.4,yarn clean compile
      

      Attachments

        Issue Links

          Activity

            People

              berngp Bernardo Gomez Palacio
              berngp Bernardo Gomez Palacio
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: