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

   > > > > > please add e2e testcase 
https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-jdbc-e2e
   > > > > 
   > > > > 
   > > > > need all success? <img alt="Snipaste_2023-07-07_09-57-44" 
width="529" 
src="https://user-images.githubusercontent.com/72905543/251616238-826d67fb-2844-470d-9796-053c51ebbb71.png";>
   > > > 
   > > > 
   > > > hello @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.sta
 rt(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)`
   > > 
   > > 
   > > <img alt="image" width="1720" 
src="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.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to