NickYoungPeng commented on PR #4803:
URL: https://github.com/apache/seatunnel/pull/4803#issuecomment-1632781067

   Yes, I have added the spark container, but it can't be solved
   
   > 2023年7月12日 22:50,Chengyu Yan ***@***.***> 写道:
   > 
   > 
   > please add e2e testcase 
https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-jdbc-e2e
   > 
   > need all success?  
<https://user-images.githubusercontent.com/72905543/251616238-826d67fb-2844-470d-9796-053c51ebbb71.png>
   > hello @TyrantLucifer <https://github.com/TyrantLucifer> ,when i test using 
spark container Exception in thread "main" 
org.apache.seatunnel.core.starter.exception.CommandExecuteException: 
ErrorCode:[API-01], ErrorDescription:[Configuration item validate failed] - 
PluginName: jdbc, PluginType: source, Message: 
com.kingbase8.util.KSQLException: FATAL: invalid value for parameter 
"client_encoding": "ANSI_X3.4-1968" at 
org.apache.seatunnel.core.starter.spark.command.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:63)
 at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40) at 
org.apache.seatunnel.core.starter.spark.SeaTunnelSpark.main(SeaTunnelSpark.java:35)
 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:958)
 at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180) at 
org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203) at 
org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90) at 
org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1046) at 
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1055) at 
org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   > 
   >  
<https://user-images.githubusercontent.com/72905543/251966367-a62cf1b3-4785-4a54-9db1-077fc63d3bb3.png>
 in local env is ok,I suspect something is wrong with the container
   > This link may help you to fix client encoding error 
<https://h2c.tech/p/os%E5%AD%97%E7%AC%A6%E9%9B%86%E5%BD%B1%E5%93%8Dkingbase%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%9E%E6%8E%A5/>
   > I tried the method in the link, but I couldn't resolve the issue.It seems 
unrelated to the Kingbase database container.I used a local Spark for testing, 
but the Kingbase database was still the one in the container, and it worked 
successfully.
   > 
   > I mean, you can try to configure LC=en_US.UTF-8 for spark container. 
Because in the container, LC=POSIX usually.
   > 
   > —
   > Reply to this email directly, view it on GitHub 
<https://github.com/apache/seatunnel/pull/4803#issuecomment-1632676368>, or 
unsubscribe 
<https://github.com/notifications/unsubscribe-auth/ARMHGR4DILYITJPMWBSBSRTXP22SHANCNFSM6AAAAAAYKDSXDA>.
   > You are receiving this because you modified the open/close state.
   > 
   
   


-- 
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-unsubscr...@seatunnel.apache.org

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

Reply via email to