<?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 error while import from MySQL: SQLException in nextKeyValue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134794#M97453</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt; - can you please try below jdbc url&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;jdbc:mysql://yourserver:3306/yourdatabase?zeroDateTimeBehavior=convertToNull&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 06 May 2016 13:44:22 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-05-06T13:44:22Z</dc:date>
    <item>
      <title>Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134793#M97452</link>
      <description>&lt;P&gt;How to fix this error?&lt;/P&gt;&lt;P&gt;  va.io.IOException: SQLException in nextKeyValue&lt;/P&gt;&lt;PRE&gt;	at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:277)
	at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:556)
	at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:80)
	at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:91)
	at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
	at org.apache.sqoop.mapreduce.AutoProgressMapper.run(AutoProgressMapper.java:64)
	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
	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:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
Caused by: java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
	at com.mysql.jdbc.ResultSetRow.getDateFast(ResultSetRow.java:145)
	at com.mysql.jdbc.ByteArrayRow.getDateFast(ByteArrayRow.java:243)
	at com.mysql.jdbc.ResultSetImpl.getDate(ResultSetImpl.java:2015)
	at com.mysql.jdbc.ResultSetImpl.getDate(ResultSetImpl.java:1978)
	at org.apache.sqoop.lib.JdbcWritableBridge.readDate(JdbcWritableBridge.java:115)
	at com.cloudera.sqoop.lib.JdbcWritableBridge.readDate(JdbcWritableBridge.java:87)
	at additional_input_invoice.readFields(additional_input_invoice.java:325)
	at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:244)
	... 12 more&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2016 13:40:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134793#M97452</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-06T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134794#M97453</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt; - can you please try below jdbc url&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;jdbc:mysql://yourserver:3306/yourdatabase?zeroDateTimeBehavior=convertToNull&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 06 May 2016 13:44:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134794#M97453</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-06T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134795#M97454</link>
      <description>&lt;P&gt;Append this to your jdbc connection string "?zeroDateTimeBehavior=convertToNull&amp;amp;autoReconnect=true&amp;amp;characterEncoding=UTF-8&amp;amp;characterSetResults=UTF-8"&lt;/P&gt;&lt;P&gt;in MySQL '0000-00-00' represent a valid date but it can not represented in java.sql.Date&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 13:44:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134795#M97454</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-05-06T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134796#M97455</link>
      <description>&lt;P&gt;Awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; worked like a charm. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 14:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134796#M97455</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-06T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134797#M97456</link>
      <description>&lt;P&gt;I'm not sure if you are using 'split-by' option.&lt;/P&gt;&lt;P&gt;In my case, this error happened because I was using 'split-by' column with a date column for distributing the process into nodes in the cluster, when I retrieve data using a query.&lt;/P&gt;&lt;P&gt;That was corrected when I use an integer column instead of using a date column&lt;/P&gt;&lt;P&gt;It seems that using date or string column is not working properly with sqoop when you use a query.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 17:37:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134797#M97456</guid>
      <dc:creator>rafael_piernago</dc:creator>
      <dc:date>2016-06-23T17:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134798#M97457</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; what about if the same error happen for Oracle?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 12:55:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134798#M97457</guid>
      <dc:creator>ijgour</dc:creator>
      <dc:date>2016-12-14T12:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134799#M97458</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1441/ijgour.html" nodeid="1441"&gt;@indrajeet gour&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Can you please post a separate question along with detailed stack trace?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 14:02:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134799#M97458</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-12-14T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop error while import from MySQL: SQLException in nextKeyValue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134800#M97459</link>
      <description>&lt;P&gt;Can you please let me know where to try this?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 23:14:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-error-while-import-from-MySQL-SQLException-in/m-p/134800#M97459</guid>
      <dc:creator>saisandeepdevop</dc:creator>
      <dc:date>2018-02-12T23:14:43Z</dc:date>
    </item>
  </channel>
</rss>

