<?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: SQOOP Retry in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29813#M6646</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But , is there any parameter&amp;nbsp;within&amp;nbsp;SQOOP&amp;nbsp;which can retry ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;-Niraj&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2015 09:11:08 GMT</pubDate>
    <dc:creator>NirajB</dc:creator>
    <dc:date>2015-07-20T09:11:08Z</dc:date>
    <item>
      <title>SQOOP Retry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29724#M6644</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;I am ingestingnthe data from Oracle 11.2.0 &amp;nbsp;DB to Datalake using SQOOP. Is there any way , if database is not avialable for some time so sqoop can retry itself.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Currently, I am using below&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQOOP Command&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;sqoop import -Dmap.retry.exponentialBackOff=TRUE -Dmap.retry.numRetries=10 -D mapred.child.java.opts=-Djava.security.egd=file:/dev/../dev/urandom -m 1 --connect "jdbc:oracle:thin:@(description = (address_list = (address = (protocol = tcp)(host = *******)(Port = 1521))) (connect_data = (sid = ******)))" --username ****** --password **** --query " select count(*) from table_test where 1=1 and \$CONDITIONS " --target-dir /user/checkdb_$$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;It is retrying for number of time , but it failed when databases come up. Is there any way , so sqoop can retry and get success ? Please help.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ORA-12505, TNS:listener does not currently know of SID given in connect descriptor&lt;/P&gt;&lt;P&gt;at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)&lt;BR /&gt;at oracle.jdbc.driver.PhysicalConnection.&amp;lt;init&amp;gt;(PhysicalConnection.java:546)&lt;BR /&gt;at oracle.jdbc.driver.T4CConnection.&amp;lt;init&amp;gt;(T4CConnection.java:236)&lt;BR /&gt;at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)&lt;BR /&gt;at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:571)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:215)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBConfiguration.getConnection(DBConfiguration.java:302)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:213)&lt;BR /&gt;... 10 more&lt;BR /&gt;Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:&lt;BR /&gt;ORA-12505, TNS:listener does not currently know of SID given in connect descriptor&lt;/P&gt;&lt;P&gt;at oracle.net.ns.NSProtocol.connect(NSProtocol.java:395)&lt;BR /&gt;at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102)&lt;BR /&gt;at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320)&lt;BR /&gt;... 18 more&lt;/P&gt;&lt;P&gt;15/07/16 16:42:13 INFO mapreduce.Job: map 100% reduce 0%&lt;BR /&gt;15/07/16 16:42:13 INFO mapreduce.Job: Job job_1436788113235_2368 failed with state FAILED due to: Task failed task_1436788113235_2368_m_000000&lt;BR /&gt;Job failed as tasks failed. failedMaps:1 failedReduces:0&lt;/P&gt;&lt;P&gt;15/07/16 16:42:14 INFO mapreduce.Job: Counters: 8&lt;BR /&gt;Job Counters&lt;BR /&gt;Failed map tasks=4&lt;BR /&gt;Launched map tasks=4&lt;BR /&gt;Other local map tasks=4&lt;BR /&gt;Total time spent by all maps in occupied slots (ms)=51367&lt;BR /&gt;Total time spent by all reduces in occupied slots (ms)=0&lt;BR /&gt;Total time spent by all map tasks (ms)=51367&lt;BR /&gt;Total vcore-seconds taken by all map tasks=51367&lt;BR /&gt;Total megabyte-seconds taken by all map tasks=52599808&lt;BR /&gt;15/07/16 16:42:14 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead&lt;BR /&gt;15/07/16 16:42:14 INFO mapreduce.ImportJobBase: Transferred 0 bytes in 158.0142 seconds (0 bytes/sec)&lt;BR /&gt;15/07/16 16:42:14 WARN mapreduce.Counters: Group org.apache.hadoop.mapred.Task$Counter is deprecated. Use org.apache.hadoop.mapreduce.TaskCounter instead&lt;BR /&gt;15/07/16 16:42:14 INFO mapreduce.ImportJobBase: Retrieved 0 records.&lt;BR /&gt;15/07/16 16:42:14 ERROR tool.ImportTool: Error during import: Import job failed!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:34:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29724#M6644</guid>
      <dc:creator>NirajB</dc:creator>
      <dc:date>2022-09-16T09:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP Retry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29753#M6645</link>
      <description>&lt;P&gt;I'd think you could use an orchestrator service like Oozie to do this for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://oozie.apache.org/" target="_blank"&gt;http://oozie.apache.org/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 20:04:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29753#M6645</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2015-07-17T20:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP Retry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29813#M6646</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But , is there any parameter&amp;nbsp;within&amp;nbsp;SQOOP&amp;nbsp;which can retry ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;-Niraj&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 09:11:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29813#M6646</guid>
      <dc:creator>NirajB</dc:creator>
      <dc:date>2015-07-20T09:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP Retry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29814#M6647</link>
      <description>Sqoop CLI currently does not have auto-retry capabilities for the situation&lt;BR /&gt;you've mentioned.&lt;BR /&gt;&lt;BR /&gt;Oozie actions, as suggested by Ben, do have a retry specifier that you can&lt;BR /&gt;leverage:&lt;BR /&gt;&lt;A href="http://archive.cloudera.com/cdh5/cdh/5/oozie/WorkflowFunctionalSpec.html#a18_User-Retry_for_Workflow_Actions_since_Oozie_3.1" target="_blank"&gt;http://archive.cloudera.com/cdh5/cdh/5/oozie/WorkflowFunctionalSpec.html#a18_User-Retry_for_Workflow_Actions_since_Oozie_3.1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jul 2015 09:35:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29814#M6647</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-20T09:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP Retry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29816#M6648</link>
      <description>&lt;P&gt;Thanks Harsh for confirming about SQOOP&amp;nbsp;CLI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using retry mechanism&amp;nbsp;with Azkaban orchestration tool and it is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But was just wondering if any hidden parameter for SQOOP CLI which can do&amp;nbsp;retry&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 09:40:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29816#M6648</guid>
      <dc:creator>NirajB</dc:creator>
      <dc:date>2015-07-20T09:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP Retry</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29856#M6649</link>
      <description>Thank you for following up!&lt;BR /&gt;&lt;BR /&gt;Please consider marking the thread resolved so others with similar questions may be able to locate topics with solutions faster.</description>
      <pubDate>Tue, 21 Jul 2015 03:36:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-Retry/m-p/29856#M6649</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-07-21T03:36:57Z</dc:date>
    </item>
  </channel>
</rss>

