You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Guoqiang Li (JIRA)" <ji...@apache.org> on 2014/06/22 06:35:24 UTC
[jira] [Updated] (SPARK-2229) SizeBasedRollingPolicy throw an
java.lang.IllegalArgumentException
[ https://issues.apache.org/jira/browse/SPARK-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guoqiang Li updated SPARK-2229:
-------------------------------
Summary: SizeBasedRollingPolicy throw an java.lang.IllegalArgumentException (was: SizeBasedRollingPolicy throw an java.lang.IllegalArgumentException)
> SizeBasedRollingPolicy throw an java.lang.IllegalArgumentException
> ------------------------------------------------------------------
>
> Key: SPARK-2229
> URL: https://issues.apache.org/jira/browse/SPARK-2229
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Environment: JDK6 Mac OS x
> Reporter: Guoqiang Li
> Priority: Blocker
>
> [RollingPolicy.scala#L112|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/logging/RollingPolicy.scala#L112] error in JDK 6
> {code}
> import java.text.SimpleDateFormat
> import java.util.Calendar
> val formatter = new SimpleDateFormat("--YYYY-MM-dd--HH-mm-ss--SSSS")
> {code}
> =>
> {code}
> val formatter = new SimpleDateFormat("--YYYY-MM-dd--HH-mm-ss--SSSS")
> java.lang.IllegalArgumentException: Illegal pattern character 'Y'
> at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:768)
> at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:575)
> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:500)
> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:475)
> at .<init>(<console>:9)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)