[ https://issues.apache.org/jira/browse/SPARK-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-2229. -------------------------------- Resolution: Fixed Fix Version/s: 1.1.0 > 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 > Assignee: Guoqiang Li > Priority: Blocker > Fix For: 1.1.0 > > > [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)