You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/04/27 12:27:36 UTC

[GitHub] [incubator-seatunnel] lawulu commented on issue #1752: [Bug] [spark batch] can not save to hdfs or hive

lawulu commented on issue #1752:
URL: https://github.com/apache/incubator-seatunnel/issues/1752#issuecomment-1110940383

   i got the same issue.
   Spark: spark-2.4.8-bin-hadoop2.6
   
   
   22/04/27 20:23:23 INFO config.ConfigBuilder: parsed config file: {
       "env" : {
           "spark.app.name" : "SeaTunnel",
           "spark.executor.cores" : 3,
           "spark.executor.instances" : 3,
           "spark.executor.memory" : "8g",
           "spark.sql.catalogImplementation" : "hive"
       },
       "sink" : [
           {
               "path" : "file:///tmp/",
               "plugin_name" : "file",
               "serializer" : "csv"
           }
       ],
       "source" : [
           {
               "plugin_name" : "hive",
               "pre_sql" : "select * from tbl where day='2022-04-24' limit 10000",
               "result_table_name" : "my_dataset"
           }
       ],
       "transform" : []
   }
   
   
   `22/04/27 20:24:26 ERROR seatunnel.Seatunnel: Exception StackTrace:java.lang.IllegalArgumentException: Illegal pattern character 'p'
   	at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:826)
   	at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:634)
   	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:605)
   	at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:580)
   	at org.apache.seatunnel.common.utils.StringTemplate.substitute(StringTemplate.java:40)
   	at org.apache.seatunnel.spark.sink.File.output(File.scala:64)
   	at org.apache.seatunnel.spark.sink.File.output(File.scala:34)
   	at org.apache.seatunnel.spark.batch.SparkBatchExecution.sinkProcess(SparkBatchExecution.java:90)
   	at org.apache.seatunnel.spark.batch.SparkBatchExecution.start(SparkBatchExecution.java:105)
   	at org.apache.seatunnel.Seatunnel.entryPoint(Seatunnel.java:107)
   	at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:65)
   	at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.java:29)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
   	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:855)
   	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
   	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
   	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
   	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:930)
   	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:939)
   	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org