- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
why does importation from mssql hive does not support timestamp?
- Labels:
-
Apache Sqoop
Created ‎04-15-2018 07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm only encountering this error when I import from mssql windows server 2003. When I import from MYSQL 5.5 to MYSQL 5.6 it does not have any problem. I'm using sqljdbc4.jar for the sql driver.
I also attached the screen shot of the error.
Please help me getting rid this error without mapping timestamp column to string.
Created ‎04-15-2018 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To Override the default mapping from SQL type to Hive type for configured columns use --map-column-hive option.
Refer to the documentation here
Created ‎04-18-2018 08:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately no but setting the attribute --map-column-hive Date=Timestamp to Sqoop will definitely work
Created ‎04-15-2018 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To Override the default mapping from SQL type to Hive type for configured columns use --map-column-hive option.
Refer to the documentation here
Created ‎04-15-2018 07:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you for your fast response @Geoffrey Shelton Okot. I already know that --map-column-hive is used to override the default mapping from SQL type to Hive type. Is there any other way to get rid of that error without using --map-column-hive??
Created ‎04-18-2018 08:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately no but setting the attribute --map-column-hive Date=Timestamp to Sqoop will definitely work
