异常Exception in thread "main" java.lang.IllegalArgumentException: Illegal pattern c

Posted lemon胡

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了异常Exception in thread "main" java.lang.IllegalArgumentException: Illegal pattern c相关的知识,希望对你有一定的参考价值。

在windows上执行的时候,option(“timestampFormat”, “yyyy/MM/dd HH:mm:ss ZZ”)必须带上,不然报错:

Exception in thread "main" java.lang.IllegalArgumentException: Illegal pattern component: XX。

使用比如:
val df1 = spark.read.format("json").option("timestampFormat", "yyyy/MM/dd HH:mm:ss ZZ").load("hdfs://192.168.137.141:9000/data/people.json")
df1.show()

以上是关于异常Exception in thread "main" java.lang.IllegalArgumentException: Illegal pattern c的主要内容,如果未能解决你的问题,请参考以下文章

(转)Exception in thread "main" java.lang.NullPointerException java报空指针异常

异常Maxwell异常 Exception in thread "main" net.sf.jsqlparser.parser.TokenMgrError: Lexical e(代

Hbase delete遇到的常见异常: Exception in thread "main" java.lang.UnsupportedOperationException(代码

异常Exception in thread "main" java.lang.IllegalArgumentException: Illegal pattern c

Maven异常Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/mav(代

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2"异常解决(