<?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 export to oracle 11g timeout in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26355#M5523</link>
    <description>&lt;P&gt;Thank you for closing the loop with us.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2015 22:18:07 GMT</pubDate>
    <dc:creator>Clint</dc:creator>
    <dc:date>2015-04-08T22:18:07Z</dc:date>
    <item>
      <title>Sqoop export to oracle 11g timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26278#M5521</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export a tab seperated text file I created using pig from hdfs to a table in oracle 11g using sqoop. When I submit the sqoop job, the map job progresses from 0% to 100%, but it happens relatevely slowly (the text file consists of 9 rows and 12 columns). The job then gets stuck at 100% untill the I get a timeout error, and then gets resubmitted again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sqoop command I used:&lt;/P&gt;&lt;PRE&gt;sqoop export --connect "jdbc:oracle:thin:@ipaddress:port:db" --username 'username' --password 'password' --table "tablename" --export-dir /user/project/subdirectory/filename --fields-terminated-by "\t" --verbose&lt;/PRE&gt;&lt;P&gt;I have tried running the same sqoop job multiple times and occasionally I get the following SQLRecoverableException.&lt;/P&gt;&lt;PRE&gt;Error: java.io.IOException: java.sql.SQLRecoverableException: No more data to read from socket
        at org.apache.sqoop.mapreduce.ExportBatchOutputFormat.getRecordWriter(ExportBatchOutputFormat.java:50)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.&amp;lt;init&amp;gt;(MapTask.java:644)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1642)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)
Caused by: java.sql.SQLRecoverableException: No more data to read from socket
        at oracle.jdbc.driver.T4CMAREngineStream.unmarshalUB1(T4CMAREngineStream.java:456)
        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:397)
        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:437)
        at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:954)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:639)
        at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:666)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:566)
        at java.sql.DriverManager.getConnection(DriverManager.java:571)
        at java.sql.DriverManager.getConnection(DriverManager.java:215)
        at org.apache.sqoop.mapreduce.db.DBConfiguration.getConnection(DBConfiguration.java:302)
        at org.apache.sqoop.mapreduce.AsyncSqlRecordWriter.&amp;lt;init&amp;gt;(AsyncSqlRecordWriter.java:76)
        at org.apache.sqoop.mapreduce.ExportOutputFormat$ExportRecordWriter.&amp;lt;init&amp;gt;(ExportOutputFormat.java:95)
        at com.cloudera.sqoop.mapreduce.ExportOutputFormat$ExportRecordWriter.&amp;lt;init&amp;gt;(ExportOutputFormat.java:38)
        at org.apache.sqoop.mapreduce.ExportBatchOutputFormat$ExportBatchRecordWriter.&amp;lt;init&amp;gt;(ExportBatchOutputFormat.java:63)
        at org.apache.sqoop.mapreduce.ExportBatchOutputFormat.getRecordWriter(ExportBatchOutputFormat.java:48)
        ... 8 more&lt;/PRE&gt;&lt;P&gt;I have tried importing data into hdfs from the same table using sqoop and i have been able to do that successfully. Please let me know your thoughts on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some additional information&lt;/P&gt;&lt;P&gt;Hadoop distribution: CDH-5.3.1-1&lt;/P&gt;&lt;P&gt;Sqoop version - 1.4.5-cdh5.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:26:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26278#M5521</guid>
      <dc:creator>UserOne</dc:creator>
      <dc:date>2022-09-16T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop export to oracle 11g timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26298#M5522</link>
      <description>&lt;P&gt;I was able to solve my issue. Apparently, the problem was that I was trying to insert data which was violating integrity constraints of the database. I found that by&amp;nbsp;going through the syslogs for the Map job Sqoop created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 14:57:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26298#M5522</guid>
      <dc:creator>UserOne</dc:creator>
      <dc:date>2015-04-08T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop export to oracle 11g timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26355#M5523</link>
      <description>&lt;P&gt;Thank you for closing the loop with us.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 22:18:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-export-to-oracle-11g-timeout/m-p/26355#M5523</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2015-04-08T22:18:07Z</dc:date>
    </item>
  </channel>
</rss>

