Skip to content

Commit

Permalink
Avoid deprecation warning in standalone Client
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Jul 23, 2014
1 parent 6ceb14f commit d7e2728
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/scala/org/apache/spark/deploy/Client.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ private class ClientActor(driverArgs: ClientArguments, conf: SparkConf) extends
*/
object Client {
def main(args: Array[String]) {
println("WARNING: This client is deprecated and will be removed in a future version of Spark.")
println("Use ./bin/spark-submit with \"--master spark://host:port\"")
if (!sys.props.contains("SPARK_SUBMIT")) {
println("WARNING: This client is deprecated and will be removed in a future version of Spark.")
println("Use ./bin/spark-submit with \"--master spark://host:port\"")
}

val conf = new SparkConf()
val driverArgs = new ClientArguments(args)
Expand Down

0 comments on commit d7e2728

Please sign in to comment.