Skip to content

Commit 5e05c60

Browse files
committed
remove deprecated options
1 parent e91f611 commit 5e05c60

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

core/src/main/scala/org/apache/spark/deploy/history/HistoryServerArguments.scala

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,33 +35,20 @@ private[history] class HistoryServerArguments(conf: SparkConf, args: Array[Strin
3535
@tailrec
3636
private def parse(args: List[String]): Unit = {
3737
args match {
38-
case ("--dir" | "-d") :: value :: tail =>
39-
setLogDirectory(value)
40-
parse(tail)
41-
4238
case ("--help" | "-h") :: tail =>
4339
printUsageAndExit(0)
4440

4541
case ("--properties-file") :: value :: tail =>
4642
propertiesFile = value
4743
parse(tail)
4844

49-
case dir :: Nil =>
50-
setLogDirectory(value = dir)
51-
5245
case Nil =>
5346

5447
case _ =>
5548
printUsageAndExit(1)
5649
}
5750
}
5851

59-
private def setLogDirectory(value: String): Unit = {
60-
logWarning("Setting log directory through the command line is deprecated as of " +
61-
"Spark 1.1.0. Please set this through spark.history.fs.logDirectory instead.")
62-
conf.set("spark.history.fs.logDirectory", value)
63-
}
64-
6552
// This mutates the SparkConf, so all accesses to it must be made after this line
6653
Utils.loadDefaultSparkProperties(conf, propertiesFile)
6754

@@ -72,8 +59,6 @@ private[history] class HistoryServerArguments(conf: SparkConf, args: Array[Strin
7259
|Usage: HistoryServer [options]
7360
|
7461
|Options:
75-
| DIR Deprecated; set spark.history.fs.logDirectory directly
76-
| --dir DIR (-d DIR) Deprecated; set spark.history.fs.logDirectory directly
7762
| --properties-file FILE Path to a custom Spark properties file.
7863
| Default is conf/spark-defaults.conf.
7964
|

0 commit comments

Comments
 (0)