<?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 Sqoop Export Error - Need Help in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183780#M75608</link>
    <description>&lt;P&gt;Hi Friends, &lt;/P&gt;&lt;P&gt;I need one help. &lt;/P&gt;&lt;P&gt;
I am trying to export data from HDFS to MySQL using Sqoop Export and staging table in MySQL. 
But it is failing and I am not able to understand the reason. I have attached the script I am executing.
Please help me to resolve the error and kindly explain what did I do wrong ? &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/62784-problem-1.txt"&gt;problem-1.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanking you &lt;/P&gt;&lt;P&gt;Santanu&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 19:50:55 GMT</pubDate>
    <dc:creator>Santanu</dc:creator>
    <dc:date>2018-03-09T19:50:55Z</dc:date>
    <item>
      <title>Sqoop Export Error - Need Help</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183780#M75608</link>
      <description>&lt;P&gt;Hi Friends, &lt;/P&gt;&lt;P&gt;I need one help. &lt;/P&gt;&lt;P&gt;
I am trying to export data from HDFS to MySQL using Sqoop Export and staging table in MySQL. 
But it is failing and I am not able to understand the reason. I have attached the script I am executing.
Please help me to resolve the error and kindly explain what did I do wrong ? &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/62784-problem-1.txt"&gt;problem-1.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanking you &lt;/P&gt;&lt;P&gt;Santanu&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 19:50:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183780#M75608</guid>
      <dc:creator>Santanu</dc:creator>
      <dc:date>2018-03-09T19:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Export Error - Need Help</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183781#M75609</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26178/sanutopia.html" nodeid="26178"&gt;@Santanu Ghosh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;During Sqoop export, Staging table should be identical in structure to the destination table. I see in your tables datatype of third column is different. &lt;/P&gt;&lt;P&gt;Can you update and then try.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 22:34:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183781#M75609</guid>
      <dc:creator>rtrivedi</dc:creator>
      <dc:date>2018-03-09T22:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Export Error - Need Help</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183782#M75610</link>
      <description>&lt;P&gt;Thanks @rtrivedi for your help and response. It is now resolved. Also, &lt;/P&gt;&lt;P&gt;I made a small modification to my sqoop code.&lt;/P&gt;&lt;P&gt;I changed --input-null-string '\\N' instead of --input-null-string 'Unknown' (used previously).&lt;/P&gt;&lt;P&gt;I am mentioning the entire sqoop code.&lt;/P&gt;&lt;P&gt;sqoop export --connect jdbc:mysql://localhost:3306/my_db --username root --password-file /user/cloudera/textdata/sq_pwd_1.txt \
--export-dir /user/cloudera/hivedata/employee --table employee --staging-table employee_stg --clear-staging-table \
--input-null-string '\\N' --input-null-non-string '\\N' --input-fields-terminated-by "," --input-lines-terminated-by "\n" -m 1&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;P&gt;Santanu&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 14:20:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Export-Error-Need-Help/m-p/183782#M75610</guid>
      <dc:creator>Santanu</dc:creator>
      <dc:date>2018-03-10T14:20:29Z</dc:date>
    </item>
  </channel>
</rss>

