Is it possible to use json4s 3.2.11 with Spark 1.3.0?

后端 未结 3 1002
清酒与你
清酒与你 2020-12-11 06:23

Spark has a dependency on json4s 3.2.10, but this version has several bugs and I need to use 3.2.11. I added json4s-native 3.2.11 dependency to build.sbt and everything comp

3条回答
  •  抹茶落季
    2020-12-11 07:27

    This is not an answer to your question but this came up when searching for my problem. I was getting a NoSuchMethod exception in formats.emptyValueStrategy.replaceEmpty(value) in json4s's 'render'. The reason was I was building with 3.2.11 but Spark was linking 3.2.10. I downgraded to 3.2.10 and my problem went away. Your question helped me understand what was going on (that Spark was linking a conflicting version of json4s) and I was able to resolve the problem, so thanks.

提交回复
热议问题