You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Gabriel Reid (JIRA)" <ji...@apache.org> on 2012/10/10 09:17:03 UTC
[jira] [Commented] (CRUNCH-92) It should be possble to read data
from DataBase
[ https://issues.apache.org/jira/browse/CRUNCH-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473046#comment-13473046 ]
Gabriel Reid commented on CRUNCH-92:
------------------------------------
I can definitely see that this would be useful.
The empty readFields and writeFields methods in JdbcWritable seem very dangerous -- there's nothing that stops someone from using objects of that type as a Writable, and the pipeline will (probably) run without any errors, and just give totally incorrect results.
I think it would be best if there is some kind of compile-time safety to force users to write the mapping code from ResultSet to a Writable type. Another option would be to try to integrate Sqoop, although I'm not sure what that would involve.
> It should be possble to read data from DataBase
> -----------------------------------------------
>
> Key: CRUNCH-92
> URL: https://issues.apache.org/jira/browse/CRUNCH-92
> Project: Crunch
> Issue Type: New Feature
> Reporter: Rahul Sharma
> Attachments: 0001-CRUNCH-92-Database-Source-in-crunch.patch
>
>
> At times we need to read some data from RDBMS in a MR job, so crunch should have a Source for the same.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira