This also rediculous, In my local desktop, mac/windows it can work well.
But In sometime on special env, it will got this issue.
Now I am using Centos7, it will got issue.
SeaTunnel Version
2.3.8
SeaTunnel Config
demo batch config file
Running Command
out of seatunnel, using `seatunnel-config-shade` library to generate config
Error Exception
java.util.LinkedHashMap cannot be cast to java.util.ArrayList
Search before asking
What happened
I am try to use
seatunnel-config-shade
library to generate config file out of seatunnel. But find some issue.Sample Code
Then I use this result submit to SeaTunnel via RestAPI.
error message
The submitted config to SeaTunnel is:
Issue
The generated config format is not right, the right format should be:
But error format is :
Related code
In
config-shade
, we rewrite theConfigParser
, when key issource
,transform
,sink
, we will cast it asSimpleConfigList
https://github.com/apache/seatunnel/blob/132278c06a6f2af12934b948f65f8baf4b69db79/seatunnel-config/seatunnel-config-shade/src/main/java/org/apache/seatunnel/shade/com/typesafe/config/impl/ConfigParser.java#L131 https://github.com/apache/seatunnel/blob/132278c06a6f2af12934b948f65f8baf4b69db79/seatunnel-config/seatunnel-config-shade/src/main/java/org/apache/seatunnel/shade/com/typesafe/config/impl/ConfigParser.java#L253And when parse config file, we has a type cast the
source
toList<Map<String, Object>>
https://github.com/apache/seatunnel/blob/132278c06a6f2af12934b948f65f8baf4b69db79/seatunnel-core/seatunnel-core-starter/src/main/java/org/apache/seatunnel/core/starter/utils/ConfigShadeUtils.java#L142But If using origin
typesafe-config
to parse Config File, It will readsource
asSimpleConfigObject
. So when cast toList
we will got exception.What did I do
seatunnel-config-base
library, find it will getNoClassDefFoundError
errorseatunnel-config-shade
the not overwrite class will load fromseatunnel-config-base
About Env
This also rediculous, In my local desktop, mac/windows it can work well. But In sometime on special env, it will got this issue. Now I am using
Centos7
, it will got issue.SeaTunnel Version
2.3.8
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
Code of Conduct