Skip to content

Commit

Permalink
[SPARK-4032] Deprecate YARN alpha support in Spark 1.2
Browse files Browse the repository at this point in the history
Author: Prashant Sharma <[email protected]>

Closes #2878 from ScrapCodes/SPARK-4032/deprecate-yarn-alpha and squashes the following commits:

17e9857 [Prashant Sharma] added deperecated comment to Client and ExecutorRunnable.
3a34b1e [Prashant Sharma] Updated docs...
4608dea [Prashant Sharma] [SPARK-4032] Deprecate YARN alpha support in Spark 1.2
  • Loading branch information
ScrapCodes authored and pwendell committed Oct 27, 2014
1 parent 9aa340a commit c9e05ca
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/building-spark.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ For Apache Hadoop 2.x, 0.23.x, Cloudera CDH, and other Hadoop versions with YARN
<tr><th>YARN version</th><th>Profile required</th></tr>
</thead>
<tbody>
<tr><td>0.23.x to 2.1.x</td><td>yarn-alpha</td></tr>
<tr><td>0.23.x to 2.1.x</td><td>yarn-alpha (Deprecated.)</td></tr>
<tr><td>2.2.x and later</td><td>yarn</td></tr>
</tbody>
</table>

Note: Support for YARN-alpha API's will be removed in Spark 1.3 (see SPARK-3445).

Examples:

{% highlight bash %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.apache.spark.deploy.SparkHadoopUtil
/**
* Version of [[org.apache.spark.deploy.yarn.ClientBase]] tailored to YARN's alpha API.
*/
@deprecated("use yarn/stable", "1.2.0")
private[spark] class Client(
val args: ClientArguments,
val hadoopConf: Configuration,
Expand Down Expand Up @@ -131,6 +132,7 @@ object Client {
println("WARNING: This client is deprecated and will be removed in a " +
"future version of Spark. Use ./bin/spark-submit with \"--master yarn\"")
}
println("WARNING: Support for YARN-alpha API's will be removed in Spark 1.3 (see SPARK-3445)")

// Set an env variable indicating we are running in YARN mode.
// Note that any env variable with the SPARK_ prefix gets propagated to all (remote) processes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.apache.hadoop.yarn.util.{Apps, ConverterUtils, Records, ProtoUtils}

import org.apache.spark.{SecurityManager, SparkConf, Logging}


@deprecated("use yarn/stable", "1.2.0")
class ExecutorRunnable(
container: Container,
conf: Configuration,
Expand Down
22 changes: 22 additions & 0 deletions yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,28 @@
<profiles>
<profile>
<id>yarn-alpha</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>*******************************************************************************************</echo>
<echo>***WARNING***: Support for YARN-alpha API's will be removed in Spark 1.3 (see SPARK-3445).*</echo>
<echo>*******************************************************************************************</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<modules>
<module>alpha</module>
</modules>
Expand Down

0 comments on commit c9e05ca

Please sign in to comment.