Hello Spark Community, I'm trying to convert my project into a single JAR. I used *sbt assembly*utility to do the same.
This is the error I got, [error] (*:assembly) deduplicate: different file contents found in the following: [error] /usr/local/spark/ram_examples/rm/lib_managed/jars/org.mortbay.jetty/servlet-api/servlet-api-2.5-20081211.jar:javax/servlet/SingleThreadModel.class [error] /usr/local/spark/ram_examples/rm/lib_managed/orbits/org.eclipse.jetty.orbit/javax.servlet/javax.servlet-2.5.0.v201103041518.jar:javax/servlet/SingleThreadModel.class So when I fix that with, https://github.com/sbt/sbt-assembly#merge-strategy, i face another dependency, java.lang.RuntimeException: deduplicate: different file contents found in the following: /usr/local/spark/ram_examples/rm/lib_managed/jars/commons-beanutils/commons-beanutils-core/commons-beanutils-core-1.8.0.jar:org/apache/commons/beanutils/converters/FloatArrayConverter.class /usr/local/spark/ram_examples/rm/lib_managed/jars/commons-beanutils/commons-beanutils/commons-beanutils-1.7.0.jar:org/apache/commons/beanutils/converters/FloatArrayConverter.class This is my build file http://pastebin.com/5W9f1g1e While this seems like an error that has been already discussed and solved<https://groups.google.com/forum/#!searchin/spark-users/java.lang.RuntimeException$3A$20deduplicate$3A$20different$20file$20contents$20found$20in$20the$20following%7Csort:relevance/spark-users/SJRyiK-kDgo/-LeAr5M1ghwJ>, and discussed here <https://spark-project.atlassian.net/browse/SPARK-395>. I get this in latest Spark *[version 0.8.0]. *I'm just curious because, this is clean build of Spark that I'm using and it seems to work fine (with sbt run/sbt package),but when I use *sbt assembly *I get this error. Am I missing something while creating JAR ? Any help would be appreciated. Thanks! Regards, R am
