Closed thbzh closed 1 year ago
my maven dependencies:
<dependency>
<groupId>za.co.absa.spline.agent.spark</groupId>
<artifactId>spark-3.0-spline-agent-bundle_2.12</artifactId>
<version>1.0.5</version>
<exclusions>
<exclusion>
<artifactId>scala-library</artifactId>
<groupId>org.scala-lang</groupId>
</exclusion>
<exclusion>
<artifactId>scala-xml_2.12</artifactId>
<groupId>org.scala-lang.modules</groupId>
</exclusion>
<exclusion>
<artifactId>scala-reflect</artifactId>
<groupId>org.scala-lang</groupId>
</exclusion>
</exclusions>
</dependency>
my scala version is 2.12.17
The bundle is not supposed to be used as a maven dependency. You should use agent-core
instead.
See https://github.com/AbsaOSS/spline-spark-agent#selecting-artifact
Why are you converting toJson.fromJson
???
looks like it's a classpath conflict between different json4s
versions. Try to analyse your Maven dependency graph and see if there is a conflict.
@thbzh We removed the dependencies on json libraries, now they are all shaded. So your issue should be solved by using the latest agent version.
Feel free to reopen or create a new issue if you still have a problem.
I have a code like the following:
this function fromJson throwed a exception like this:
How can I call serialization/deserialization?