aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/building-spark.md4
-rw-r--r--yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala2
-rw-r--r--yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala2
-rw-r--r--yarn/pom.xml22
4 files changed, 28 insertions, 2 deletions
diff --git a/docs/building-spark.md b/docs/building-spark.md
index 11fd56c145..4cc0b1f2e5 100644
--- a/docs/building-spark.md
+++ b/docs/building-spark.md
@@ -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 %}
diff --git a/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala b/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
index 9c66c78584..73b705ba50 100644
--- a/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
+++ b/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
@@ -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,
@@ -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
diff --git a/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala b/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala
index 229b7a09f4..7ee4b5c842 100644
--- a/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala
+++ b/yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala
@@ -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,
diff --git a/yarn/pom.xml b/yarn/pom.xml
index 8a7035c85e..2885e6607e 100644
--- a/yarn/pom.xml
+++ b/yarn/pom.xml
@@ -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>