title: spark-solr fat jar assembly problems
body: <p>I am using the spark-solr client found here <a href="https://github.com/lucidworks/spark-solr" rel="nofollow noreferrer">https://github.com/lucidworks/spark-solr</a></p>
  
  <p>I am using the sbt-assembly plugin (<a href="https://github.com/sbt/sbt-assembly" rel="nofollow noreferrer">https://github.com/sbt/sbt-assembly</a>) to package my fat jar.  I used the instructions from this post <a href="https://stackoverflow.com/questions/28459333/how-to-build-an-uber-jar-fat-jar-using-sbt-within-intellij-idea">How to build an Uber JAR (Fat JAR) using SBT within IntelliJ IDEA?</a></p>
  
  <p>And my build.sbt file is </p>
  
  <pre><code>name := "SolrSpark"
  
  version := "1.0"
  
  scalaVersion := "2.10.4"
  
  
  libraryDependencies ++= Seq(
    "com.lucidworks.spark" % "spark-solr" % "2.0.0"
  )
  
  mergeStrategy in assembly &lt;&lt;= (mergeStrategy in assembly) { (old) =&gt; {
    case PathList("META-INF", xs@_*) =&gt; MergeStrategy.discard
    case x =&gt; MergeStrategy.first
  }
  }
  </code></pre>
  
  <p>Then when I perform</p>
  
  <pre><code>sbt assembly
  </code></pre>
  
  <p>My jar get's packaged without error, but when I try to run the jar with </p>
  
  <pre><code>java -jar SolrSpark-assembly-1.0.jar 
  </code></pre>
  
  <p>I get the error</p>
  
  <pre><code> [main] ERROR SparkContext  - Error initializing SparkContext.
  com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka.version'
      at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:124)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:145)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:151)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:159)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:164)
      at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:206)
      at akka.actor.ActorSystem$Settings.&lt;init&gt;(ActorSystem.scala:169)
      at akka.actor.ActorSystemImpl.&lt;init&gt;(ActorSystem.scala:505)
      at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)
      at akka.actor.ActorSystem$.apply(ActorSystem.scala:119)
      at org.apache.spark.util.AkkaUtils$.org$apache$spark$util$AkkaUtils$$doCreateActorSystem(AkkaUtils.scala:121)
      at org.apache.spark.util.AkkaUtils$$anonfun$1.apply(AkkaUtils.scala:53)
      at org.apache.spark.util.AkkaUtils$$anonfun$1.apply(AkkaUtils.scala:52)
      at org.apache.spark.util.Utils$$anonfun$startServiceOnPort$1.apply$mcVI$sp(Utils.scala:1988)
      at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:141)
      at org.apache.spark.util.Utils$.startServiceOnPort(Utils.scala:1979)
      at org.apache.spark.util.AkkaUtils$.createActorSystem(AkkaUtils.scala:55)
      at org.apache.spark.SparkEnv$.create(SparkEnv.scala:266)
      at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:193)
      at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:288)
      at org.apache.spark.SparkContext.&lt;init&gt;(SparkContext.scala:457)
      at com.xendo.solr.SolrSparkWordCount$delayedInit$body.apply(SolrSparkWordCount.scala:15)
      at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
      at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      at scala.App$$anonfun$main$1.apply(App.scala:71)
      at scala.App$$anonfun$main$1.apply(App.scala:71)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
      at scala.App$class.main(App.scala:71)
      at com.xendo.solr.SolrSparkWordCount$.main(SolrSparkWordCount.scala:7)
      at com.xendo.solr.SolrSparkWordCount.main(SolrSparkWordCount.scala)
  </code></pre>
  
  <p>which is occurring at the line in which I define the spark context</p>
  
  <pre><code>  val sc = new SparkContext(conf)
  </code></pre>
  
  <p>Does anyone know what is causing this error?</p>