<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Spark 1.6 - Dataframe read json throws org.apache.spark.sql.DataFrame = [_corrupt_record: string] in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194513#M156573</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That helped. Thank you..!!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 01:53:41 GMT</pubDate>
    <dc:creator>rmy1712</dc:creator>
    <dc:date>2017-11-14T01:53:41Z</dc:date>
    <item>
      <title>Spark 1.6 - Dataframe read json throws org.apache.spark.sql.DataFrame = [_corrupt_record: string]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194511#M156571</link>
      <description>&lt;P&gt;I am using Spark 1.6.&lt;/P&gt;&lt;P&gt;I get the following error when I try to read a json file as per documentation of Spark 1.6&lt;/P&gt;&lt;PRE&gt;scala&amp;gt; val colors = sqlContext.read.json("C:/Downloads/colors.json");
colors: org.apache.spark.sql.DataFrame = [_corrupt_record: string]&lt;/PRE&gt;&lt;P&gt;1. The Spark 1.6 works fine and I have been able to read other text files.&lt;/P&gt;&lt;P&gt;2. Attached the json file as text(since upload of json is blocked), I have also validated the json using jsoneditoronline to ensure the json file is well formulated&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/43582-colors.txt"&gt;colors.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 01:40:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194511#M156571</guid>
      <dc:creator>rmy1712</dc:creator>
      <dc:date>2017-11-14T01:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 1.6 - Dataframe read json throws org.apache.spark.sql.DataFrame = [_corrupt_record: string]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194512#M156572</link>
      <description>&lt;P&gt;This is usually a problem with multiline json files.&lt;/P&gt;&lt;P&gt;use the following in your json file:&lt;/P&gt;&lt;PRE&gt;{"colors":[{"color":"black","category":"hue","type":"primary","code":{"rgba":[255,255,255,1],"hex":"#000"}},{"color":"white","category":"value","code":{"rgba":[0,0,0,1],"hex":"#FFF"}},{"color":"red","category":"hue","type":"primary","code":{"rgba":[255,0,0,1],"hex":"#FF0"}},{"color":"blue","category":"hue","type":"primary","code":{"rgba":[0,0,255,1],"hex":"#00F"}},{"color":"yellow","category":"hue","type":"primary","code":{"rgba":[255,255,0,1],"hex":"#FF0"}},{"color":"green","category":"hue","type":"secondary","code":{"rgba":[0,255,0,1],"hex":"#0F0"}}]}&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2017 01:45:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194512#M156572</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-11-14T01:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 1.6 - Dataframe read json throws org.apache.spark.sql.DataFrame = [_corrupt_record: string]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194513#M156573</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That helped. Thank you..!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 01:53:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-1-6-Dataframe-read-json-throws-org-apache-spark-sql/m-p/194513#M156573</guid>
      <dc:creator>rmy1712</dc:creator>
      <dc:date>2017-11-14T01:53:41Z</dc:date>
    </item>
  </channel>
</rss>

