<?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: import with sqoop smalldatetime from sql server to timestamp in Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130974#M31369</link>
    <description>&lt;P&gt;Can you try --map-column-hive option. This will Overridethe default mapping from SQL type to Hive type for configured columns&lt;/P&gt;&lt;P&gt;Refer to the documentation here &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/using_sqoop_to_move_data_into_hive.html"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/using_sqoop_to_move_data_into_hive.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2016 00:17:26 GMT</pubDate>
    <dc:creator>ganne</dc:creator>
    <dc:date>2016-06-11T00:17:26Z</dc:date>
    <item>
      <title>import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130969#M31364</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I have a smalldatetime data in my database server sql data and when I matter with Sqoop , this data is stored in the Hive String format because smalldatetime does not exist in the hive tool. This becomes probmématique for my work.
Anyone know if there a way to import through Sqoop , smallldatetime a data type of sql server and store the timestamp format recognized by Hive . &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 22:38:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130969#M31364</guid>
      <dc:creator>nanyim_alain</dc:creator>
      <dc:date>2016-06-09T22:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130970#M31365</link>
      <description>&lt;P&gt;I am not sure about whether is any way available to get the desired output from sql server import, but I dont think it matter much if you import sql server smalldate to hive string. you can modify the hive query to get the expected output e.g unix_timestamp you can convert the string to desired timestamp&lt;/P&gt;&lt;P&gt; to know more about it you can check following documentation.&lt;/P&gt;&lt;P&gt; &lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 14:15:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130970#M31365</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-10T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130971#M31366</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/6006/nanyimalain.html" nodeid="6006"&gt;@alain TSAFACK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also make use of --query option during sqoop import to cast the smalldatetime to timestamp:&lt;/P&gt;&lt;P&gt;sqoop import ...other options.... --query "select cast(col1 as datetime) from table_name"&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:15:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130971#M31366</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-10T16:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130972#M31367</link>
      <description>&lt;P&gt;Thanks. But it creates another error : &lt;/P&gt;&lt;P&gt;"Hive does not support the SQL type for column date"&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 21:38:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130972#M31367</guid>
      <dc:creator>nanyim_alain</dc:creator>
      <dc:date>2016-06-10T21:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130973#M31368</link>
      <description>&lt;P&gt;Can you try --map-column-hive option. This will Overridethe default mapping from SQL type to Hive type for configured columns&lt;/P&gt;&lt;P&gt;Refer to the documentation here &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/using_sqoop_to_move_data_into_hive.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/using_sqoop_to_move_data_into_hive.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:16:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130973#M31368</guid>
      <dc:creator>ganne</dc:creator>
      <dc:date>2016-06-11T00:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130974#M31369</link>
      <description>&lt;P&gt;Can you try --map-column-hive option. This will Overridethe default mapping from SQL type to Hive type for configured columns&lt;/P&gt;&lt;P&gt;Refer to the documentation here &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/using_sqoop_to_move_data_into_hive.html"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/using_sqoop_to_move_data_into_hive.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:17:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130974#M31369</guid>
      <dc:creator>ganne</dc:creator>
      <dc:date>2016-06-11T00:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: import with sqoop smalldatetime from sql server to timestamp in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130975#M31370</link>
      <description>&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;By adding the attribute --map-column-hive Date=Timestamp to Sqoop everything works.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 18:28:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/import-with-sqoop-smalldatetime-from-sql-server-to-timestamp/m-p/130975#M31370</guid>
      <dc:creator>nanyim_alain</dc:creator>
      <dc:date>2016-06-13T18:28:23Z</dc:date>
    </item>
  </channel>
</rss>

