{"action":"created","issue":{"url":"https://api.github.com/repos/databricks/spark-csv/issues/27","labels_url":"https://api.github.com/repos/databricks/spark-csv/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/databricks/spark-csv/issues/27/comments","events_url":"https://api.github.com/repos/databricks/spark-csv/issues/27/events","html_url":"https://github.com/databricks/spark-csv/issues/27","id":62011687,"number":27,"title":"The type org.apache.spark.sql.api.java.JavaSQLContext cannot be resolved. ","user":{"login":"sudev","id":992961,"avatar_url":"https://avatars.githubusercontent.com/u/992961?v=3","gravatar_id":"","url":"https://api.github.com/users/sudev","html_url":"https://github.com/sudev","followers_url":"https://api.github.com/users/sudev/followers","following_url":"https://api.github.com/users/sudev/following{/other_user}","gists_url":"https://api.github.com/users/sudev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudev/subscriptions","organizations_url":"https://api.github.com/users/sudev/orgs","repos_url":"https://api.github.com/users/sudev/repos","events_url":"https://api.github.com/users/sudev/events{/privacy}","received_events_url":"https://api.github.com/users/sudev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-16T08:42:57Z","updated_at":"2015-08-13T02:12:45Z","closed_at":"2015-03-26T20:04:06Z","body":"I was not able to find the version `1.0.0` as mentioned in ReadMe through maven.  \r\n```\r\ngroupId: com.databricks\r\nartifactId: spark-csv_2.10\r\nversion: 1.0.0\r\n```\r\nSo, I tried to version `0.1` in my pom.xml. \r\n```\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n\t<modelVersion>4.0.0</modelVersion>\r\n\t<groupId>com.spark.test</groupId>\r\n\t<artifactId>SparkTest</artifactId>\r\n\t<version>0.0.1-SNAPSHOT</version>\r\n\t<dependencies>\r\n\t\t<dependency> <!-- Spark dependency -->\r\n\t\t\t<groupId>org.apache.spark</groupId>\r\n\t\t\t<artifactId>spark-core_2.10</artifactId>\r\n\t\t\t<version>1.3.0</version>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.apache.spark</groupId>\r\n\t\t\t<artifactId>spark-sql_2.10</artifactId>\r\n\t\t\t<version>1.3.0</version>\r\n\t\t</dependency>\t\r\n\t\t<dependency>\r\n\t\t\t<groupId>com.databricks</groupId>\r\n\t\t\t<artifactId>spark-csv_2.10</artifactId>\r\n\t\t\t<version>0.1</version>\r\n\t\t</dependency>\r\n\t</dependencies>\r\n</project>\r\n```\r\nAnd when I try to parse a csv, it results in a compilation error. \r\n\r\n`The type org.apache.spark.sql.api.java.JavaSQLContext cannot be resolved. It is indirectly referenced from required .class files`\r\n\r\nMy Java code        \r\n\r\n```{java}\r\nSparkConf conf = new SparkConf();\r\nJavaSparkContext sc = new JavaSparkContext(conf);\r\nSQLContext sqlContext = new org.apache.spark.sql.SQLContext(sc);\r\nDataFrame cars = (new JavaCsvParser()).withUseHeader(true).csvFile(sqlContext , \"cars.csv\");\r\n```\r\n\r\nI'm not able  to understand why the JavaCsvParser is looking for  `org.apache.spark.sql.api.java.JavaSQLContext`, since in `Spark 1.3` they have merged both `JavaSQLContext` and  `SQLContext` into `SQLContext` Again please let me know if I have not configured my pom.xml correctly. \r\n\r\n(I'm new to spark and I'm not sure if I'm talking sense here) \r\nThanks"},"comment":{"url":"https://api.github.com/repos/databricks/spark-csv/issues/comments/130508472","html_url":"https://github.com/databricks/spark-csv/issues/27#issuecomment-130508472","issue_url":"https://api.github.com/repos/databricks/spark-csv/issues/27","id":130508472,"user":{"login":"brkyvz","id":5243515,"avatar_url":"https://avatars.githubusercontent.com/u/5243515?v=3","gravatar_id":"","url":"https://api.github.com/users/brkyvz","html_url":"https://github.com/brkyvz","followers_url":"https://api.github.com/users/brkyvz/followers","following_url":"https://api.github.com/users/brkyvz/following{/other_user}","gists_url":"https://api.github.com/users/brkyvz/gists{/gist_id}","starred_url":"https://api.github.com/users/brkyvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkyvz/subscriptions","organizations_url":"https://api.github.com/users/brkyvz/orgs","repos_url":"https://api.github.com/users/brkyvz/repos","events_url":"https://api.github.com/users/brkyvz/events{/privacy}","received_events_url":"https://api.github.com/users/brkyvz/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T02:12:45Z","updated_at":"2015-08-13T02:12:45Z","body":"In fact you don't need spark-core once you have spark-sql.\nOn Aug 12, 2015 7:11 PM, \"Burak Yavuz\" <burak@databricks.com> wrote:\n\n> Could you also match your spark-sql and spark-core version? To 1.4.1\n> perhaps?\n> On Aug 12, 2015 7:10 PM, \"Vinod Jayakumar\" <notifications@github.com>\n> wrote:\n>\n>> Thanks for the quick reply.\n>> this didnt work :(\n>> I changed spark-csv to 2.10 to match with spark-sql version 2.10.\n>>\n>>\n>> org.apache.spark\n>> spark-sql_2.10\n>> 1.3.0\n>>\n>>\n>> com.databricks\n>> spark-csv_2.10\n>> 1.0.3\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/databricks/spark-csv/issues/27#issuecomment-130508076>\n>> .\n>>\n>\n"}}