{"action":"created","issue":{"url":"https://api.github.com/repos/argonaut-io/argonaut/issues/165","labels_url":"https://api.github.com/repos/argonaut-io/argonaut/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/argonaut-io/argonaut/issues/165/comments","events_url":"https://api.github.com/repos/argonaut-io/argonaut/issues/165/events","html_url":"https://github.com/argonaut-io/argonaut/issues/165","id":56154253,"number":165,"title":"CodecJson not serializable.","user":{"login":"parkx408","id":1572510,"avatar_url":"https://avatars.githubusercontent.com/u/1572510?v=3","gravatar_id":"","url":"https://api.github.com/users/parkx408","html_url":"https://github.com/parkx408","followers_url":"https://api.github.com/users/parkx408/followers","following_url":"https://api.github.com/users/parkx408/following{/other_user}","gists_url":"https://api.github.com/users/parkx408/gists{/gist_id}","starred_url":"https://api.github.com/users/parkx408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkx408/subscriptions","organizations_url":"https://api.github.com/users/parkx408/orgs","repos_url":"https://api.github.com/users/parkx408/repos","events_url":"https://api.github.com/users/parkx408/events{/privacy}","received_events_url":"https://api.github.com/users/parkx408/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-01T06:31:02Z","updated_at":"2015-03-09T12:58:03Z","closed_at":"2015-03-09T12:58:03Z","body":"First of all, I have been using argonaut for awhile now and I really like it. Thanks!\r\n\r\nWe work with Spark extensively and I just pulled in argonaut as a dependency against some of my colleagues displeasure. \r\n\r\nTypically, it works fine but when I actually try to create an implicit functions that extends RDD (a distributed compute graph interface), I am running into issues. \r\n\r\n```\r\nimplicit class KeyValueDStreamExtension[V](self: DStream[(Key,V)]) extends Serializable {\r\n    def saveToHBase(conf: Configuration)(implicit codec: EncodeJson[V]) =\r\n        ...\r\n}\r\n```\r\n\r\nCompiles fine but at runtime throws java.io.NotSerializableException.\r\n\r\n```\r\nException in thread \"main\" org.apache.spark.SparkException: Task not serializable\r\n        ...\r\nCaused by: java.io.NotSerializableException: argonaut.CodecJson$$anon$1\r\n\tat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)\r\n\tat java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)\r\n\tat java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)\r\n\tat java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)\r\n\tat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)\r\n\tat java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)\r\n\tat org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:42)\r\n\tat org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:73)\r\n\tat org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:164)\r\n\t... 6 more\r\n```\r\n\r\nMaybe there is a better way or maybe you guys can make the Codec serializable, I am not sure but any help would be greatly appreciated. \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/argonaut-io/argonaut/issues/comments/77848162","html_url":"https://github.com/argonaut-io/argonaut/issues/165#issuecomment-77848162","issue_url":"https://api.github.com/repos/argonaut-io/argonaut/issues/165","id":77848162,"user":{"login":"seanparsons","id":217400,"avatar_url":"https://avatars.githubusercontent.com/u/217400?v=3","gravatar_id":"","url":"https://api.github.com/users/seanparsons","html_url":"https://github.com/seanparsons","followers_url":"https://api.github.com/users/seanparsons/followers","following_url":"https://api.github.com/users/seanparsons/following{/other_user}","gists_url":"https://api.github.com/users/seanparsons/gists{/gist_id}","starred_url":"https://api.github.com/users/seanparsons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanparsons/subscriptions","organizations_url":"https://api.github.com/users/seanparsons/orgs","repos_url":"https://api.github.com/users/seanparsons/repos","events_url":"https://api.github.com/users/seanparsons/events{/privacy}","received_events_url":"https://api.github.com/users/seanparsons/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T12:58:03Z","updated_at":"2015-03-09T12:58:03Z","body":"I think we can close this because it's not really something for Argonaut to do."}}