@@ -69,29 +69,28 @@ can be run using:
6969Spark uses the Hadoop core library to talk to HDFS and other Hadoop-supported
7070storage systems. Because the protocols have changed in different versions of
7171Hadoop, you must build Spark against the same version that your cluster runs.
72- You can change the version by setting the ` SPARK_HADOOP_VERSION ` environment
73- when building Spark.
72+ You can change the version by setting ` -Dhadoop.version ` when building Spark.
7473
7574For Apache Hadoop versions 1.x, Cloudera CDH MRv1, and other Hadoop
7675versions without YARN, use:
7776
7877 # Apache Hadoop 1.2.1
79- $ SPARK_HADOOP_VERSION =1.2.1 sbt/sbt assembly
78+ $ sbt/sbt -Dhadoop.version =1.2.1 assembly
8079
8180 # Cloudera CDH 4.2.0 with MapReduce v1
82- $ SPARK_HADOOP_VERSION =2.0.0-mr1-cdh4.2.0 sbt/sbt assembly
81+ $ sbt/sbt -Dhadoop.version =2.0.0-mr1-cdh4.2.0 assembly
8382
8483For Apache Hadoop 2.2.X, 2.1.X, 2.0.X, 0.23.x, Cloudera CDH MRv2, and other Hadoop versions
8584with YARN, also set ` SPARK_YARN=true ` :
8685
8786 # Apache Hadoop 2.0.5-alpha
88- $ SPARK_HADOOP_VERSION =2.0.5-alpha SPARK_YARN=true sbt/sbt assembly
87+ $ sbt/sbt -Dhadoop.version =2.0.5-alpha -Pyarn assembly
8988
9089 # Cloudera CDH 4.2.0 with MapReduce v2
91- $ SPARK_HADOOP_VERSION =2.0.0-cdh4.2.0 SPARK_YARN=true sbt/sbt assembly
90+ $ sbt/sbt -Dhadoop.version =2.0.0-cdh4.2.0 -Pyarn assembly
9291
9392 # Apache Hadoop 2.2.X and newer
94- $ SPARK_HADOOP_VERSION =2.2.0 SPARK_YARN=true sbt/sbt assembly
93+ $ sbt/sbt -Dhadoop.version =2.2.0 -Pyarn assembly
9594
9695When developing a Spark application, specify the Hadoop version by adding the
9796"hadoop-client" artifact to your project's dependencies. For example, if you're
0 commit comments