Thanks you very much!
That was exactly the example i needed to get started.

Martijn Lenderink

2013/3/8 Rahul Sharma <[email protected]>

> You need to use org.apache.crunch.contrib.io.jdbc.DataBaseSource class for
> reading and writing data. The class takes all jdbc params as input and a
> implementation of DBWitable where you can read data.
>
> regards
> Rahul
>
>
>
> On Thu, Mar 7, 2013 at 11:53 PM, Josh Wills <[email protected]> wrote:
>
>> +rahul
>>
>> I haven't run it myself, but Rahul wrote it and added an integration test
>> for it:
>>
>>
>> https://github.com/apache/incubator-crunch/blob/master/crunch-contrib/src/it/java/org/apache/crunch/contrib/io/jdbc/DataBaseSourceIT.java
>>
>> Does that help?
>>
>>
>> On Thu, Mar 7, 2013 at 7:59 AM, Martijn Lenderink <[email protected]
>> > wrote:
>>
>>> Hello all,
>>>
>>> I'am trying to read data from an JDBC source.
>>> I know Crunch is able to do this with the DataBaseSource class.
>>>
>>> Can anyone give me an example on how to use this class, how to read data
>>> from a JDBC source.
>>>
>>> Greetings,
>>> Martijn Lenderink
>>>
>>>
>>
>>
>> --
>> Director of Data Science
>> Cloudera <http://www.cloudera.com>
>> Twitter: @josh_wills <http://twitter.com/josh_wills>
>>
>

Reply via email to