Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Greetings.
I'm getting the following error on an apache spark batch job:
java.lang.IllegalArgumentException: Illegal pattern component: XXX
at org.apache.commons.lang3.time.FastDatePrinter.parsePattern(FastDatePrinter.java:282)
at org.apache.commons.lang3.time.FastDatePrinter.init(FastDatePrinter.java:149)
at org.apache.commons.lang3.time.FastDatePrinter.<init>(FastDatePrinter.java:142)
at org.apache.commons.lang3.time.FastDateFormat.<init>(FastDateFormat.java:384)
at org.apache.commons.lang3.time.FastDateFormat.<init>(FastDateFormat.java:369)
at org.apache.commons.lang3.time.FastDateFormat$1.createInstance(FastDateFormat.java:91)
at org.apache.commons.lang3.time.FastDateFormat$1.createInstance(FastDateFormat.java:88)
at org.apache.commons.lang3.time.FormatCache.getInstance(FormatCache.java:82)
at org.apache.commons.lang3.time.FastDateFormat.getInstance(FastDateFormat.java:165)
Here's my system's and my talend product's specs:
Any help is appreciated. Thanks.
Thank you for the reply.
Upgrading to a newer patch is unfortunately not an option to us at the current moment. However, I managed to find a workaround!
The component that was causing this issue was the two tFileInputDelimeted in the job. I discovered you can replace each of these for a combination of the tFileInputFullRow and tJavaRow.
IMPORTANT NOTE: Somehow, just deactivating the tFileInputDelimeted still causes the error to pop. You need to delete the component from the job.
The procedure:
This is the workaround I came up with, it might work with a tExtractDelimetedFields instead of a tJavaRow. Will edit in the future with an answer to this.
Hello,
Does this job work fine in spark local mode with Spark 2.4?
It seems to be a known jira issue and it is reported and fixed in R2020-08 but regression from R2020-09 until R2020-12.
You'd better raise a support case on talend support portal so that our colleagues from support team would check your issue and see if a new patch could be delivered to you to fix it through support cycle with priority.
Best regards
Sabrina
Thank you for the reply.
Upgrading to a newer patch is unfortunately not an option to us at the current moment. However, I managed to find a workaround!
The component that was causing this issue was the two tFileInputDelimeted in the job. I discovered you can replace each of these for a combination of the tFileInputFullRow and tJavaRow.
IMPORTANT NOTE: Somehow, just deactivating the tFileInputDelimeted still causes the error to pop. You need to delete the component from the job.
The procedure:
This is the workaround I came up with, it might work with a tExtractDelimetedFields instead of a tJavaRow. Will edit in the future with an answer to this.
Hello,
Thanks for sharing your workaround with us on Community.
Best regards
Sabrina