{"action":"created","issue":{"url":"https://api.github.com/repos/mraad/spark-gdb/issues/2","repository_url":"https://api.github.com/repos/mraad/spark-gdb","labels_url":"https://api.github.com/repos/mraad/spark-gdb/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mraad/spark-gdb/issues/2/comments","events_url":"https://api.github.com/repos/mraad/spark-gdb/issues/2/events","html_url":"https://github.com/mraad/spark-gdb/issues/2","id":188995148,"number":2,"title":"Errors after trying examples on Spark 2.0.2","user":{"login":"dmfenton","id":7832202,"avatar_url":"https://avatars.githubusercontent.com/u/7832202?v=3","gravatar_id":"","url":"https://api.github.com/users/dmfenton","html_url":"https://github.com/dmfenton","followers_url":"https://api.github.com/users/dmfenton/followers","following_url":"https://api.github.com/users/dmfenton/following{/other_user}","gists_url":"https://api.github.com/users/dmfenton/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfenton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfenton/subscriptions","organizations_url":"https://api.github.com/users/dmfenton/orgs","repos_url":"https://api.github.com/users/dmfenton/repos","events_url":"https://api.github.com/users/dmfenton/events{/privacy}","received_events_url":"https://api.github.com/users/dmfenton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-13T21:09:16Z","updated_at":"2016-11-14T14:31:54Z","closed_at":null,"body":"I tried to run both examples from the readme, and I ran into errors each time. Logs below:\r\n\r\nSpark: 2.02\r\n\r\n```\r\nscala> import com.esri.gdb._\r\nimport com.esri.gdb._\r\n\r\nscala> import com.esri.udt._\r\nimport com.esri.udt._\r\n\r\nscala> sc.gdbFile(\"src/test/resources/Test.gdb\", \"Points\", numPartitions = 2).map(row => {\r\n     |   row.getAs[PointType](row.fieldIndex(\"Shape\"))\r\n     | }).foreach(println)\r\nerror: missing or invalid dependency detected while loading class file 'GDBRDD.class'.\r\nCould not access type Logging in package org.apache.spark,\r\nbecause it (or its dependencies) are missing. Check your build definition for\r\nmissing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)\r\nA full rebuild may help if 'GDBRDD.class' was compiled against an incompatible version of org.apache.spark.\r\n```\r\n\r\n```\r\nscala> val df = sqlContext.read.\r\n     |     format(\"com.esri.gdb\").\r\n     |     option(\"path\", \"src/test/resources/Test.gdb\").\r\n     |     option(\"name\", \"Points\").\r\n     |     load()\r\n<console>:29: error: not found: value sqlContext\r\n       val df = sqlContext.read.\r\n```"},"comment":{"url":"https://api.github.com/repos/mraad/spark-gdb/issues/comments/260349534","html_url":"https://github.com/mraad/spark-gdb/issues/2#issuecomment-260349534","issue_url":"https://api.github.com/repos/mraad/spark-gdb/issues/2","id":260349534,"user":{"login":"dmfenton","id":7832202,"avatar_url":"https://avatars.githubusercontent.com/u/7832202?v=3","gravatar_id":"","url":"https://api.github.com/users/dmfenton","html_url":"https://github.com/dmfenton","followers_url":"https://api.github.com/users/dmfenton/followers","following_url":"https://api.github.com/users/dmfenton/following{/other_user}","gists_url":"https://api.github.com/users/dmfenton/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfenton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfenton/subscriptions","organizations_url":"https://api.github.com/users/dmfenton/orgs","repos_url":"https://api.github.com/users/dmfenton/repos","events_url":"https://api.github.com/users/dmfenton/events{/privacy}","received_events_url":"https://api.github.com/users/dmfenton/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T14:31:53Z","updated_at":"2016-11-14T14:31:53Z","body":"Cool, I just wanted to confirm that I wasn't missing something from the instructions. I'll try to figure make it work with Spark 2.X and open a PR when I do."}}
{"actor":{"display_login":"dmfenton"}}