shapeless.DefaultSymbolicLabelling
shapeless.DefaultSymbolicLabelling$.instance(shapeless.HList)
getting this error while using both pureconfig
and circe
.
I'm using spark 3.1.2 with spark k8s operator.
shapeless.DefaultSymbolicLabelling
shapeless.DefaultSymbolicLabelling$.instance(shapeless.HList)
getting this error while using both pureconfig
and circe
.
I'm using spark 3.1.2 with spark k8s operator.
This error is because of conflicting shapeless library versions. Spark 3.1.2 ships with shapeless 2.3.3 whereas both these packages need shapeless 2.3.7. To solve this I followed the steps mentioned here which involve shading ie renaming the dependency.
For SBT
If you are using the sbt-assembly plugin to create your JARs you can shade shapeless by adding to your assembly.sbt file the following setting:
Maven
The maven-shade-plugin can shade shapeless by adding to your pom.xml file the following block: