Proper way to make a Spark Fat Jar using SBT

后端 未结 1 1366
遥遥无期
遥遥无期 2020-12-20 23:53

I need a Fat Jar with Spark because I\'m creating a custom node for Knime. Basically it\'s a self-contained jar executed inside Knime and I assume a Fat Jar is the only way

相关标签:
1条回答
  • 2020-12-21 00:28

    I think the issue is with how you've setup assemblyMergeStrategy. Try this:

    assemblyMergeStrategy in assembly := {
      case PathList("META-INF", xs @ _*) => MergeStrategy.discard
      case "application.conf"            => MergeStrategy.concat
      case "reference.conf"              => MergeStrategy.concat
      case x =>
        val baseStrategy = (assemblyMergeStrategy in assembly).value
        baseStrategy(x)
    }
    
    0 讨论(0)
提交回复
热议问题