<?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: Load several files into HIVE table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-several-files-into-HIVE-table/m-p/199589#M68507</link>
    <description>&lt;P&gt;Hi Guys, I'm so so .... Well, I just remember that you can create just an external table stored in the same folder all files with the same structure are located. So , in that way I will load whole records in one shoot.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; CREATE EXTERNAL TABLE bixi_his&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; ( &amp;gt; STATIONS ARRAY&amp;lt;STRUCT&amp;lt;id: INT,s:STRING,n:string,st:string,b:string,su:string,m:string,lu:string,lc:string,bk:string,bl:string,la:float,lo:float,da:int,dx:int,ba:int,bx:int&amp;gt;&amp;gt;, &amp;gt; SCHEMESUSPENDED STRING,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; TIMELOAD BIGINT &amp;gt; )&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; LOCATION '/user/ingenieroandresangel/datasets/bixi2017/';&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P&gt; thanks&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2017 10:05:09 GMT</pubDate>
    <dc:creator>AndresUrrego</dc:creator>
    <dc:date>2017-09-23T10:05:09Z</dc:date>
    <item>
      <title>Load several files into HIVE table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-several-files-into-HIVE-table/m-p/199588#M68506</link>
      <description>&lt;P&gt;Look I'm trying to analyze too many files into just one HIVE table. Key insights, I'm working with json files and the tables structure is :&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;CREATE EXTERNAL TABLE test1 (&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;STATIONS ARRAY&amp;lt;STRING&amp;gt;,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;SCHEMESUSPENDED STRING,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;TIMELOAD TIMESTAMP )&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;LOCATION '/user/andres/hive/bixihistorical/';&lt;/P&gt;&lt;P&gt;I need to load around 50 files with the same structure all of them. I have tried things like:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;LOAD DATA  INPATH '/user/andres/datasets/bixi2017/*.json' OVERWRITE INTO TABLE test1;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;LOAD DATA  INPATH '/user/andres/datasets/bixi2017/*' OVERWRITE INTO TABLE test1;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;LOAD DATA  INPATH '/user/andres/datasets/bixi2017/' OVERWRITE INTO TABLE test1;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P&gt;Any of those above have worked, any idea guys about how should I go thru? thanks so much&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 08:02:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-several-files-into-HIVE-table/m-p/199588#M68506</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-09-23T08:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load several files into HIVE table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-several-files-into-HIVE-table/m-p/199589#M68507</link>
      <description>&lt;P&gt;Hi Guys, I'm so so .... Well, I just remember that you can create just an external table stored in the same folder all files with the same structure are located. So , in that way I will load whole records in one shoot.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; CREATE EXTERNAL TABLE bixi_his&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; ( &amp;gt; STATIONS ARRAY&amp;lt;STRUCT&amp;lt;id: INT,s:STRING,n:string,st:string,b:string,su:string,m:string,lu:string,lc:string,bk:string,bl:string,la:float,lo:float,da:int,dx:int,ba:int,bx:int&amp;gt;&amp;gt;, &amp;gt; SCHEMESUSPENDED STRING,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; TIMELOAD BIGINT &amp;gt; )&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; &amp;gt; LOCATION '/user/ingenieroandresangel/datasets/bixi2017/';&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P&gt; thanks&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 10:05:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Load-several-files-into-HIVE-table/m-p/199589#M68507</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-09-23T10:05:09Z</dc:date>
    </item>
  </channel>
</rss>

