aboutsummaryrefslogtreecommitdiff
path: root/yarn
diff options
context:
space:
mode:
authorPrashant Sharma <prashant.s@imaginea.com>2014-10-27 10:02:48 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-10-27 10:02:48 -0700
commitc9e05ca27c9c702b510d424e3befc87213f24e0f (patch)
tree64e5458ede5e422b30f3a05e38c146c64661f634 /yarn
parent9aa340a23fd7532f5e72c3352df92ce3e857fc80 (diff)
downloadspark-c9e05ca27c9c702b510d424e3befc87213f24e0f.tar.gz
spark-c9e05ca27c9c702b510d424e3befc87213f24e0f.tar.bz2
spark-c9e05ca27c9c702b510d424e3befc87213f24e0f.zip
[SPARK-4032] Deprecate YARN alpha support in Spark 1.2
Author: Prashant Sharma <prashant.s@imaginea.com> 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
Diffstat (limited to 'yarn')
-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
3 files changed, 25 insertions, 1 deletions
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>