<?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: how to do incremental load using sqoop shell script? By passing parameters? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163559#M45223</link>
    <description>&lt;P&gt;It really depends on what your relational database is. Some relational database does not support incremental imports. Otherwise, the link above provided by bhagan should sufficient.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 23:58:25 GMT</pubDate>
    <dc:creator>ylu</dc:creator>
    <dc:date>2016-11-08T23:58:25Z</dc:date>
    <item>
      <title>how to do incremental load using sqoop shell script? By passing parameters?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163557#M45221</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;+#!/bin/bash&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;  echo " sqoop import --connect $connectors//$orginServer/$orginDatabase --table $origTable  --username $username  --password $password  -m 1 --hive-import --hive-database $hiveDatabase  --hive-table $myTable  --target-dir /tmp/sqoop_1         --drivers $drivers"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My sample script is above how to do modification in above script for sqoop incremental using column time stamp and merge id&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 20:10:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163557#M45221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-03T20:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to do incremental load using sqoop shell script? By passing parameters?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163558#M45222</link>
      <description>&lt;P&gt;To do incremental imports, you need to add a few more arguments to your command. Take a look at the following description from the sqoop docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sqoop.apache.org/docs/1.4.6/SqoopUserGuide.html#_incremental_imports"&gt;https://sqoop.apache.org/docs/1.4.6/SqoopUserGuide.html#_incremental_imports&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Inside your shell script, I’m not sure how you’re setting the values of your named parameters, unless you have more code that is mapping the positional parameters to local variables.&lt;/P&gt;&lt;P&gt;When using the lastmodified mode, it requires that a field in your table to be a timestamp, which will be updated with the current timestamp during update. Additionally, the update requires a check column, which can be of type timestamp also.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 02:45:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163558#M45222</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-11-05T02:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to do incremental load using sqoop shell script? By passing parameters?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163559#M45223</link>
      <description>&lt;P&gt;It really depends on what your relational database is. Some relational database does not support incremental imports. Otherwise, the link above provided by bhagan should sufficient.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 23:58:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-do-incremental-load-using-sqoop-shell-script-By/m-p/163559#M45223</guid>
      <dc:creator>ylu</dc:creator>
      <dc:date>2016-11-08T23:58:25Z</dc:date>
    </item>
  </channel>
</rss>

