{"action":"created","issue":{"url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/563","labels_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/563/comments","events_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/563/events","html_url":"https://github.com/andypetrella/spark-notebook/issues/563","id":128332145,"number":563,"title":"Windows, metadata: if \"customDeps\" contains a local jar, then the sparkContext is undefined","user":{"login":"deanwampler","id":3991,"avatar_url":"https://avatars.githubusercontent.com/u/3991?v=3","gravatar_id":"","url":"https://api.github.com/users/deanwampler","html_url":"https://github.com/deanwampler","followers_url":"https://api.github.com/users/deanwampler/followers","following_url":"https://api.github.com/users/deanwampler/following{/other_user}","gists_url":"https://api.github.com/users/deanwampler/gists{/gist_id}","starred_url":"https://api.github.com/users/deanwampler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanwampler/subscriptions","organizations_url":"https://api.github.com/users/deanwampler/orgs","repos_url":"https://api.github.com/users/deanwampler/repos","events_url":"https://api.github.com/users/deanwampler/events{/privacy}","received_events_url":"https://api.github.com/users/deanwampler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-23T14:47:15Z","updated_at":"2016-01-25T00:55:13Z","closed_at":null,"body":"While running with notebooks in Windows, I found that unless the metadata's `customDeps` omits my application code jar file, or the whole `customDeps` is defined to be `null`, then the `sparkContext` (alias `sc`) is undefined. That is, if the metadata has this:\r\n\r\n```\r\ncustomDeps: null,\r\n```\r\n\r\nor perhaps this, \r\n```\r\ncustomDeps: [ \r\n  \"- org.apache.spark % _ % _\", \r\n  \"- org.apache.hadoop % _ % _\" ],\r\n```\r\n\r\nthen it works fine, but if `customDeps` includes this:\r\n\r\n```\r\ncustomDeps: [\r\n    \"com.myco %% myapp % 1.0\"\r\n],\r\n```\r\n\r\nthen the `sparkContext` is undefined.\r\n\r\nThe `customLocalRepo` is defined correctly, as an important statement from my jar file works correctly. Also, if I remove the \"myapp\" dependency from `customDeps` and use the `:dp` directive instead, that works fine."},"comment":{"url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/comments/174360708","html_url":"https://github.com/andypetrella/spark-notebook/issues/563#issuecomment-174360708","issue_url":"https://api.github.com/repos/andypetrella/spark-notebook/issues/563","id":174360708,"user":{"login":"andypetrella","id":663344,"avatar_url":"https://avatars.githubusercontent.com/u/663344?v=3","gravatar_id":"","url":"https://api.github.com/users/andypetrella","html_url":"https://github.com/andypetrella","followers_url":"https://api.github.com/users/andypetrella/followers","following_url":"https://api.github.com/users/andypetrella/following{/other_user}","gists_url":"https://api.github.com/users/andypetrella/gists{/gist_id}","starred_url":"https://api.github.com/users/andypetrella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andypetrella/subscriptions","organizations_url":"https://api.github.com/users/andypetrella/orgs","repos_url":"https://api.github.com/users/andypetrella/repos","events_url":"https://api.github.com/users/andypetrella/events{/privacy}","received_events_url":"https://api.github.com/users/andypetrella/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T00:55:13Z","updated_at":"2016-01-25T00:55:13Z","body":"man... that's weirdo.\r\n\r\nCould you run `sbt clean` first?\r\n\r\nAlso something strange also, it is picking 2.10.4 instead of 2.10.4 :-S"}}