<?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: Incrimental update in HIVE table using sqoop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113462#M33890</link>
    <description>&lt;P&gt;Thanks a lot .... You save my day .... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;I missed the --target-dir. &lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 21:08:40 GMT</pubDate>
    <dc:creator>Biswajit16</dc:creator>
    <dc:date>2016-07-05T21:08:40Z</dc:date>
    <item>
      <title>Incrimental update in HIVE table using sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113459#M33887</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a table in oracle with only 4 columns...&lt;/P&gt;

&lt;P&gt;Memberid --- bigint&lt;/P&gt;

&lt;P&gt;uuid     --- String&lt;/P&gt;

&lt;P&gt;insertdate --- date &lt;/P&gt;

&lt;P&gt;updatedate --- date &lt;/P&gt;

&lt;P&gt;I want to import those data in HIVE table using sqoop. I create corresponding HIVE table with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;create  EXTERNAL TABLE memberimport(memberid BIGINT,uuid varchar(36),insertdate timestamp,updatedate timestamp)LOCATION '/user/import/memberimport';
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and sqoop command &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sqoop import --connect jdbc:oracle:thin:@dbURL:1521/dbName --username ** --password *** --hive-import --table MEMBER --columns 'MEMBERID,UUID,INSERTDATE,UPDATEDATE' --map-column-hive MEMBERID=BIGINT,UUID=STRING,INSERTDATE=TIMESTAMP,UPDATEDATE=TIMESTAMP --hive-table memberimport -m 1   
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Its working properly and able to import data in HIVE table.&lt;/P&gt;&lt;P&gt;Now I want to update this table with incremental update with 
updatedate (last value today's date) so that I can get day to day update
 for that OLTP table into my HIVE table using sqoop. &lt;/P&gt;&lt;P&gt;For Incremental import I am using following sqoop command &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sqoop import --hive-import --connect jdbc:oracle:thin:@dbURL:1521/dbName --username *** --password *** --table MEMBER --check-column UPDATEDATE --incremental append --columns 'MEMBERID,UUID,INSERTDATE,UPDATEDATE' --map-column-hive MEMBERID=BIGINT,UUID=STRING,INSERTDATE=TIMESTAMP,UPDATEDATE=TIMESTAMP --hive-table memberimport -m 1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I am getting exception &lt;/P&gt;&lt;P&gt;"Append mode for hive imports is not  yet supported. Please remove the parameter --append-mode" and as per documentation in sqoop "--hive-import" does not support with "--incremental append"&lt;/P&gt;&lt;P&gt;When I remove the  "--hive-import" it run properly and  file in getting created in  sqoop location in HDFS but I did not found those new update in HIVE table that I have in OLTP table. &lt;/P&gt;&lt;P&gt;When I run....&lt;/P&gt;&lt;P&gt;"select * from hive-table "&lt;/P&gt;&lt;P&gt;It is showing the old data only no incremental data. &lt;/P&gt;&lt;P&gt;Am  I doing anything wrong ?
Please suggest me how can I run incremental update with Oracle - Hive using sqoop.&lt;/P&gt;&lt;P&gt;Any help will be appropriated..&lt;/P&gt;&lt;P&gt;Thanks in Advance ...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 18:09:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113459#M33887</guid>
      <dc:creator>Biswajit16</dc:creator>
      <dc:date>2016-07-05T18:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental update in HIVE table using sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113460#M33888</link>
      <description>&lt;P&gt;After the initial import, subsequent imports can leverage SQOOP’s native support for “Incremental Import” by using the “check-column”, “incremental” and “last-value” parameters.&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/blog/four-step-strategy-incremental-updates-hive/" target="_blank"&gt;http://hortonworks.com/blog/four-step-strategy-incremental-updates-hive/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 18:20:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113460#M33888</guid>
      <dc:creator>mkumar13</dc:creator>
      <dc:date>2016-07-05T18:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental update in HIVE table using sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113461#M33889</link>
      <description>&lt;P&gt;One solution is to remove "--hive-import" for incremental imports (after the first one -- what you already tried) and also to set "--target-dir /user/import/memberimport". In this way you are adding new entries to the Hive table's directory and therefore the Hive table will be updated as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 18:55:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113461#M33889</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-07-05T18:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental update in HIVE table using sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113462#M33890</link>
      <description>&lt;P&gt;Thanks a lot .... You save my day .... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;I missed the --target-dir. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 21:08:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113462#M33890</guid>
      <dc:creator>Biswajit16</dc:creator>
      <dc:date>2016-07-05T21:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incrimental update in HIVE table using sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113463#M33891</link>
      <description>&lt;P&gt;Cool, but you accepted the wrong answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 21:14:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incrimental-update-in-HIVE-table-using-sqoop/m-p/113463#M33891</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-07-05T21:14:10Z</dc:date>
    </item>
  </channel>
</rss>

