{"action":"created","issue":{"url":"https://api.github.com/repos/hubt/spark-cass/issues/1","labels_url":"https://api.github.com/repos/hubt/spark-cass/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hubt/spark-cass/issues/1/comments","events_url":"https://api.github.com/repos/hubt/spark-cass/issues/1/events","html_url":"https://github.com/hubt/spark-cass/issues/1","id":64529561,"number":1,"title":"Schema example does not work","user":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?v=3","gravatar_id":"","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-26T13:44:48Z","updated_at":"2015-03-30T06:54:22Z","closed_at":null,"body":"First I added \r\n```\r\nimport org.apache.spark.sql.SchemaRDD;\r\n```\r\nOtherwise the SchemaRDD type was missing\r\n```\r\nval rdd: SchemaRDD = cc.sql(\"SELECT * from testkeyspace.trigram limit 10\")\r\n```\r\nThen I used \r\n```\r\nrdd.foreach(println)\r\n```\r\n(not a.foeach)\r\n\r\nBut hit the following:\r\n```\r\n15/03/26 13:38:46 ERROR Executor: Exception in task 0.0 in stage 1.0 (TID 2)\r\ncom.esotericsoftware.kryo.KryoException: Unable to find class: com.datastax.spark.connector.CassandraRow\r\nSerialization trace:\r\nSerialization trace:\r\n_2 (org.apache.spark.util.MutablePair)\r\n\tat com.esotericsoftware.kryo.util.DefaultClassResolver.readName(DefaultClassResolver.java:138)\r\n\tat com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:115)\r\n\tat com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:610)\r\n\tat com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.read(FieldSerializer.java:599)\r\n\tat com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:221)\r\n\tat com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:732)\r\n\tat org.apache.spark.serializer.KryoDeserializationStream.readObject(KryoSerializer.scala:133)\r\n\tat org.apache.spark.serializer.DeserializationStream$$anon$1.getNext(Serializer.scala:133)\r\n\tat org.apache.spark.util.NextIterator.hasNext(NextIterator.scala:71)\r\n\tat org.apache.spark.storage.BlockManager$LazyProxyIterator$1.hasNext(BlockManager.scala:1082)\r\n```\r\n\r\nThanks for the project!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hubt/spark-cass/issues/comments/87571775","html_url":"https://github.com/hubt/spark-cass/issues/1#issuecomment-87571775","issue_url":"https://api.github.com/repos/hubt/spark-cass/issues/1","id":87571775,"user":{"login":"tzach","id":170200,"avatar_url":"https://avatars.githubusercontent.com/u/170200?v=3","gravatar_id":"","url":"https://api.github.com/users/tzach","html_url":"https://github.com/tzach","followers_url":"https://api.github.com/users/tzach/followers","following_url":"https://api.github.com/users/tzach/following{/other_user}","gists_url":"https://api.github.com/users/tzach/gists{/gist_id}","starred_url":"https://api.github.com/users/tzach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzach/subscriptions","organizations_url":"https://api.github.com/users/tzach/orgs","repos_url":"https://api.github.com/users/tzach/repos","events_url":"https://api.github.com/users/tzach/events{/privacy}","received_events_url":"https://api.github.com/users/tzach/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T06:54:22Z","updated_at":"2015-03-30T06:54:22Z","body":"Thanks for the prompt response and fix!\r\nOn a similar setup I have I'm using\r\n```\r\n../spark-cassandra-connector/spark-cassandra-connector-java/target/scala-2.10/spark-cassandra-connector-java-assembly-1.1.2-SNAPSHOT.jar \r\n```\r\nnote the java suffix in spark-cassandra-connector**-java** it was not always there"}}