You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output:
java.lang.NumberFormatException: For input string: "u'04/26/2017 14:59:50'"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1250)
at java.lang.Double.valueOf(Double.java:504)
at com.pinterest.secor.parser.JsonMessageParser.extractTimestampMillis(JsonMessageParser.java:42)
at com.pinterest.secor.parser.TimestampedMessageParser.extractPartitions(TimestampedMessageParser.java:175)
at com.pinterest.secor.parser.MessageParser.parse(MessageParser.java:60)
at com.pinterest.secor.consumer.Consumer.consumeNextMessage(Consumer.java:145)
at com.pinterest.secor.consumer.Consumer.run(Consumer.java:98)
I think, the pattern is not even used, because if the pattern was wrong, the result would be a java.text.ParseException. It looks like the pattern is not even used, but I don't know why. Any help is highly appreciated...
Best Regards
David
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to parse the date from a JSON file:
secor.common.properties:
message.timestamp.input.pattern:u'MM/dd/yyyy HH:mm:ss'
secor.message.parser.class=com.pinterest.secor.parser.JsonMessageParser
Input:
"u'04/26/2017 14:59:50'"
Output:
java.lang.NumberFormatException: For input string: "u'04/26/2017 14:59:50'"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1250)
at java.lang.Double.valueOf(Double.java:504)
at com.pinterest.secor.parser.JsonMessageParser.extractTimestampMillis(JsonMessageParser.java:42)
at com.pinterest.secor.parser.TimestampedMessageParser.extractPartitions(TimestampedMessageParser.java:175)
at com.pinterest.secor.parser.MessageParser.parse(MessageParser.java:60)
at com.pinterest.secor.consumer.Consumer.consumeNextMessage(Consumer.java:145)
at com.pinterest.secor.consumer.Consumer.run(Consumer.java:98)
I think, the pattern is not even used, because if the pattern was wrong, the result would be a java.text.ParseException. It looks like the pattern is not even used, but I don't know why. Any help is highly appreciated...
Best Regards
David
The text was updated successfully, but these errors were encountered: