<?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 Multiple sqoop on same hive table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Multiple-sqoop-on-same-hive-table/m-p/185668#M71111</link>
    <description />
    <pubDate>Fri, 10 Nov 2017 16:09:53 GMT</pubDate>
    <dc:creator>Gayathridevi</dc:creator>
    <dc:date>2017-11-10T16:09:53Z</dc:date>
    <item>
      <title>Multiple sqoop on same hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Multiple-sqoop-on-same-hive-table/m-p/185668#M71111</link>
      <description />
      <pubDate>Fri, 10 Nov 2017 16:09:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Multiple-sqoop-on-same-hive-table/m-p/185668#M71111</guid>
      <dc:creator>Gayathridevi</dc:creator>
      <dc:date>2017-11-10T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple sqoop on same hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Multiple-sqoop-on-same-hive-table/m-p/185669#M71112</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/39249/gayathrimtechcse.html" nodeid="39249"&gt;@Gayathri Devi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Assuming your initial data to be and Index as row key which will be increasing as new data is inserted&lt;/P&gt;&lt;PRE&gt;Index, value ---&amp;gt; col names
1,a
2,b
3,c&lt;/PRE&gt;&lt;P&gt;You can run normal sqoop command which will import the complete data to destination. Now let's say you have added few more rows to the source and your input becomes like this&lt;/P&gt;&lt;PRE&gt;Index, value ---&amp;gt; col names
1,a
2,b
3,c
4,d
5,e
6,f&lt;/PRE&gt;&lt;P&gt;Now you can use sqoop incremental command to import the new columns . You can use  "--incremental&amp;lt;mode&amp;gt; --check-column&amp;lt;column name&amp;gt; --last-value&amp;lt;last check column value&amp;gt;"&lt;/P&gt;&lt;P&gt;ie "--incremental append --check-column Index --last-value 3". This command will only import the last 3 rows &lt;/P&gt;&lt;P&gt;You can also do incremental import based on lastmodified value.&lt;/P&gt;&lt;P&gt;&lt;A href="https://sqoop.apache.org/docs/1.4.2/SqoopUserGuide.html#_incremental_imports" target="_blank"&gt;https://sqoop.apache.org/docs/1.4.2/SqoopUserGuide.html#_incremental_imports&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:33:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Multiple-sqoop-on-same-hive-table/m-p/185669#M71112</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-10T16:33:41Z</dc:date>
    </item>
  </channel>
</rss>

