{"action":"created","issue":{"url":"https://api.github.com/repos/TargetHolding/pyspark-cassandra/issues/56","labels_url":"https://api.github.com/repos/TargetHolding/pyspark-cassandra/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/TargetHolding/pyspark-cassandra/issues/56/comments","events_url":"https://api.github.com/repos/TargetHolding/pyspark-cassandra/issues/56/events","html_url":"https://github.com/TargetHolding/pyspark-cassandra/issues/56","id":107640828,"number":56,"title":"Unable to import pyspark_cassandra module","user":{"login":"rajnandy","id":7777036,"avatar_url":"https://avatars.githubusercontent.com/u/7777036?v=3","gravatar_id":"","url":"https://api.github.com/users/rajnandy","html_url":"https://github.com/rajnandy","followers_url":"https://api.github.com/users/rajnandy/followers","following_url":"https://api.github.com/users/rajnandy/following{/other_user}","gists_url":"https://api.github.com/users/rajnandy/gists{/gist_id}","starred_url":"https://api.github.com/users/rajnandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajnandy/subscriptions","organizations_url":"https://api.github.com/users/rajnandy/orgs","repos_url":"https://api.github.com/users/rajnandy/repos","events_url":"https://api.github.com/users/rajnandy/events{/privacy}","received_events_url":"https://api.github.com/users/rajnandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-22T03:57:00Z","updated_at":"2015-10-13T12:57:57Z","closed_at":null,"body":"I am using Spark 1.3 with Cassandra 2.1.8. Following the process mentioned here to connect with Cassandra from pyspark. Tried the following: pyspark --packages TargetHolding:pyspark-cassandra:0.1.5 and pyspark --jars pyspark_cassandra-0.1.5.jar  \\\r\n    --driver-class-path pyspark_cassandra-0.1.5.jar \\\r\n    --py-files pyspark_cassandra-0.1.5-py2.7.egg \\\r\n    --conf spark.cassandra.connection.host=localhost.  In both cases i am not able to do import pyspark_cassandra from pyspark terminal. It says ImportError: No module named pyspark_cassandra"},"comment":{"url":"https://api.github.com/repos/TargetHolding/pyspark-cassandra/issues/comments/147707045","html_url":"https://github.com/TargetHolding/pyspark-cassandra/issues/56#issuecomment-147707045","issue_url":"https://api.github.com/repos/TargetHolding/pyspark-cassandra/issues/56","id":147707045,"user":{"login":"pchundi","id":4728134,"avatar_url":"https://avatars.githubusercontent.com/u/4728134?v=3","gravatar_id":"","url":"https://api.github.com/users/pchundi","html_url":"https://github.com/pchundi","followers_url":"https://api.github.com/users/pchundi/followers","following_url":"https://api.github.com/users/pchundi/following{/other_user}","gists_url":"https://api.github.com/users/pchundi/gists{/gist_id}","starred_url":"https://api.github.com/users/pchundi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchundi/subscriptions","organizations_url":"https://api.github.com/users/pchundi/orgs","repos_url":"https://api.github.com/users/pchundi/repos","events_url":"https://api.github.com/users/pchundi/events{/privacy}","received_events_url":"https://api.github.com/users/pchundi/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T12:57:57Z","updated_at":"2015-10-13T12:57:57Z","body":"@rajnandy \r\nI tried you suggestion, but unfortunately it does not work.\r\n spark-submit --jars ~/lib/pyspark_cassandra-0.1.5.jar --driver-class-path ~/lib/pyspark_cassandra-0.1.5.jar --py-files ~/lib/pyspark_cassandra-0.1.5-py2.7.egg --master yarn-client myscript.py\r\ngetting error:\r\nAttributeError: 'SparkContext' object has no attribute 'cassandraTable'\r\n\r\nEnvironment:\r\nSpark 1.3.1\r\nCassandra 2.1.5.469\r\n\r\nfyi: the call is successful in local mode but not in yarn-client mode.\r\n\r\nSome help would be very much appreciated.\r\n"}}