<?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: Why all data is loaded to first column of Hive table? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60805#M69177</link>
    <description>You should specify file delimiter and new line character while creating table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROW FORMAT DELIMITED FIELDS TERMINATED BY '\u0001' LINES TERMINATED BY '\n'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Oct 2017 18:13:10 GMT</pubDate>
    <dc:creator>daai_evangelist</dc:creator>
    <dc:date>2017-10-10T18:13:10Z</dc:date>
    <item>
      <title>Why all data is loaded to first column of Hive table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60723#M69175</link>
      <description>&lt;P&gt;I have Quickstart VM and trying to load data, but all data is stored to first column. What is wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*CREATE TABLE&amp;nbsp;&amp;nbsp; -- Table will be succesfully created*/&lt;BR /&gt;CREATE TABLE IF NOT EXISTS Auto_Insurance_Claims_US &amp;nbsp;&lt;BR /&gt;(Customer String,Country String,StateCode String,State String,ClaimAmount Float,Response String,Coverage String,Education String,EffectiveToDate String,EmploymentStatus String,Gender String,Income String,LocationCode String,MaritalStatus String,MonthlyPremiumAuto String,MonthsSinceLastClaim String,MonthsSincePolicyInception String,NumberOfOpenComplaints Int,NumberOfPolicies Int,PolicyType String,Policy String,ClaimReason String,SalesChannel String,TotalClaimAmount Float,VehicleClass String,VehicleSize String) &amp;nbsp;&lt;BR /&gt;ROW FORMAT DELIMITED&lt;BR /&gt;STORED AS TEXTFILE&lt;BR /&gt;&lt;BR /&gt;/*LOAD -- All lines of data loaded, but they are all stored to first column Customer*/&lt;BR /&gt;LOAD DATA LOCAL INPATH '/home/cloudera/workspace/MyData/Auto_Insurance_Claims_Sample.csv'&lt;BR /&gt;OVERWRITE INTO TABLE Auto_Insurance_Claims_US;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:22:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60723#M69175</guid>
      <dc:creator>SuperKenny121</dc:creator>
      <dc:date>2022-09-16T12:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why all data is loaded to first column of Hive table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60731#M69176</link>
      <description>It is CSV, so I assume that it is "," delimited?&lt;BR /&gt;&lt;BR /&gt;You will need to tell that to Hive:&lt;BR /&gt;&lt;BR /&gt;CREATE TABLE IF NOT EXISTS Auto_Insurance_Claims_US&lt;BR /&gt;(Customer String,Country String,StateCode String,State String,ClaimAmount Float,Response String,Coverage String,Education String,EffectiveToDate String,EmploymentStatus String,Gender String,Income String,LocationCode String,MaritalStatus String,MonthlyPremiumAuto String,MonthsSinceLastClaim String,MonthsSincePolicyInception String,NumberOfOpenComplaints Int,NumberOfPolicies Int,PolicyType String,Policy String,ClaimReason String,SalesChannel String,TotalClaimAmount Float,VehicleClass String,VehicleSize String)&lt;BR /&gt;ROW FORMAT DELIMITED&lt;BR /&gt;FIELDS TERMINATED BY ","&lt;BR /&gt;STORED AS TEXTFILE;&lt;BR /&gt;&lt;BR /&gt;Try and see if it works for you.</description>
      <pubDate>Sun, 08 Oct 2017 09:51:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60731#M69176</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2017-10-08T09:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why all data is loaded to first column of Hive table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60805#M69177</link>
      <description>You should specify file delimiter and new line character while creating table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ROW FORMAT DELIMITED FIELDS TERMINATED BY '\u0001' LINES TERMINATED BY '\n'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Oct 2017 18:13:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-all-data-is-loaded-to-first-column-of-Hive-table/m-p/60805#M69177</guid>
      <dc:creator>daai_evangelist</dc:creator>
      <dc:date>2017-10-10T18:13:10Z</dc:date>
    </item>
  </channel>
</rss>

