title: illegal cyclic reference involving error with Spark+Scala combine
body: <p>I'm facing <strong><em>illegal cyclic reference involving</em></strong> error with Spark+Scala combine.</p>
  
  <pre><code>Error Ocured during job for '1473170880000000' and Error Message is scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving method srcip
      at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1220)
      at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1218)
      at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
      at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      at scala.reflect.internal.Symbols$Symbol.lock(Symbols.scala:482)
      at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1218)
      at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1374)
      at scala.reflect.internal.Symbols$Symbol.privateWithin(Symbols.scala:1169)
      at scala.reflect.internal.Symbols$Symbol.hasAccessBoundary(Symbols.scala:1176)
      at scala.reflect.internal.HasFlags$class.isPublic(HasFlags.scala:111)
      at scala.reflect.internal.Symbols$Symbol.isPublic(Symbols.scala:112)
      at com.datastax.spark.connector.util.ReflectionUtil$$anonfun$2.apply(ReflectionUtil.scala:77)
  
  Error Ocured during job for '1453743420000000' and Error Message is scala.MatchError: &lt;error&gt; (of class scala.reflect.internal.Types$ErrorType$)
      at com.datastax.spark.connector.util.ReflectionUtil$.returnType(ReflectionUtil.scala:113)
  </code></pre>
  
  <p>This error happens when I try execute more than 1 jobs simultaneously.It smells like multi-threading issue. isn't it ? This error comes when loading data from Cassandra (when perform my first action) or when saving data into Cassandra <code>rdd.saveToCassandra(...)</code></p>
  
  <p>My dependency details </p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
          &lt;artifactId&gt;spark-core_2.10&lt;/artifactId&gt;
          &lt;version&gt;1.6.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
          &lt;artifactId&gt;spark-sql_2.10&lt;/artifactId&gt;
          &lt;version&gt;1.6.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.datastax.spark&lt;/groupId&gt;
          &lt;artifactId&gt;spark-cassandra-connector_2.10&lt;/artifactId&gt;
          &lt;version&gt;1.6.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
          &lt;artifactId&gt;dse-driver&lt;/artifactId&gt;
          &lt;version&gt;1.1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
          &lt;artifactId&gt;cassandra-driver-core&lt;/artifactId&gt;
          &lt;version&gt;3.0.2&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Driver error log <a href="https://i.stack.imgur.com/1OMpP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1OMpP.png" alt="enter image description here"></a></p>
  
  <p>Any suggestions/help on this highly appreciated. has anyone faced this issue ? </p>