crunch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Schile <>
Subject DataBaseSource configuration issue
Date Tue, 20 May 2014 22:21:53 GMT
I am having trouble using the DataBaseSource class from crunch-contrib. I
am using version 0.8.2+32-cdh4.4.0 of crunch-contrib and 2.0.0-mr1-cdh4.4.0
of hadoop-core. The DataBaseSource class is setting the property
"mapreduce.jdbc.driver.class" on the Hadoop configuration [1] to specify
the JDBC driver to use, while when trying to get a connection to the
database in DBConfiguration#getConnection [2] it is reading property
"mapred.jdbc.driver.class" to retrieve the driver class to use. This
property mismatch is causing the connection to not be established. I would
have expected "mapred.jdbc.driver.class" property to be used within
DataBaseSource since MR1 is being used. I decompiled
crunch-contrib:2.0.0-mr1-cdh4.4.0 jar using [3] and looked at the
DataBaseSource class and it was using "mapreduce.jdbc.driver.class". It
makes me think that crunch-contrib:2.0.0-mr1-cdh4.4.0 was compiled with a
hadoop-core version that was not 2.0.0-mr1-cdh4.4.0. Has anyone ran into
this issue before? Thanks.




View raw message