Skip to content

Commit f85f321

Browse files
committed
FileAppender throw anIllegalArgumentException in JDK6
1 parent e1a8da8 commit f85f321

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/util/logging/FileAppender.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ private[spark] object FileAppender extends Logging {
125125
val validatedParams: Option[(Long, String)] = rollingInterval match {
126126
case "daily" =>
127127
logInfo(s"Rolling executor logs enabled for $file with daily rolling")
128-
Some(24 * 60 * 60 * 1000L, "--YYYY-MM-dd")
128+
Some(24 * 60 * 60 * 1000L, "--yyyy-MM-dd")
129129
case "hourly" =>
130130
logInfo(s"Rolling executor logs enabled for $file with hourly rolling")
131-
Some(60 * 60 * 1000L, "--YYYY-MM-dd--HH")
131+
Some(60 * 60 * 1000L, "--yyyy-MM-dd--HH")
132132
case "minutely" =>
133133
logInfo(s"Rolling executor logs enabled for $file with rolling every minute")
134-
Some(60 * 1000L, "--YYYY-MM-dd--HH-mm")
134+
Some(60 * 1000L, "--yyyy-MM-dd--HH-mm")
135135
case IntParam(seconds) =>
136136
logInfo(s"Rolling executor logs enabled for $file with rolling $seconds seconds")
137-
Some(seconds * 1000L, "--YYYY-MM-dd--HH-mm-ss")
137+
Some(seconds * 1000L, "--yyyy-MM-dd--HH-mm-ss")
138138
case _ =>
139139
logWarning(s"Illegal interval for rolling executor logs [$rollingInterval], " +
140140
s"rolling logs not enabled")

0 commit comments

Comments
 (0)