Github user witgo commented on the pull request:

    https://github.com/apache/spark/pull/502#issuecomment-41239453
  
    @berngp 
    Most of the people uses the same version of HDFS vs YARN.
    We can be so
    ```xml
       <hadoop.version>1.0.4</hadoop.version>
       <yarn.version>${hadoop.version}</yarn.version>
    ```
    ```xml
     <profile>
          <id>yarn-alpha</id>
          <properties>
            <hadoop.major.version>2</hadoop.major.version>   
            <hadoop.version>0.23.7</hadoop.version>
          </properties>
          <modules>
            <module>yarn</module>
          </modules>
          <dependencyManagement>
            <dependencies>
              <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-yarn-api</artifactId>
                <version>${yarn.version}</version>
              </dependency>
              <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-yarn-common</artifactId>
                <version>${yarn.version}</version>
              </dependency>
              <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-yarn-client</artifactId>
                <version>${yarn.version}</version>
              </dependency>
            </dependencies>
          </dependencyManagement>
        </profile>
    ```
    Most of the people use `mvn -Pyarn -Dhadoop.version=2.3.0 -DskipTests clean 
package`.
    Others use`mvn -Pyarn -Dhadoop.version=2.3.0 -DskipTests 
-Dyarn.version=0.23.9 clean package`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to