I have a 6 node hadouop clouder based cloudera and am trying to connect to oracle database from sqoop action in oozie.
I copied my ojdbc6.jar file to the sqoop lib location (for me this happened: /opt/cloudera/parcels/CDH-4.2.0-1.cdh4.2.0.p0.10/lib/sqoop/lib/) at all nodes and checked that I can run a simple sqoop eval from all 6 nodes.
Now, when I run the same command using the Oozie sqoop action, I get "Can't load db driver class: oracle.jdbc.OracleDriver"
I read this article about using shared libraries, and it makes sense to me when we talk about my dependency dependencies task / action / workflow. But I see the JDBC driver installation as an extension for sqoop, and therefore I think it belongs to the sqoop installation library.
Now the question is, what sqoop sees this ojdbc6 box that I put the lib folder in it, where does my Oozie workflow not see it?
Is this something expected or am I missing something?
As an aside, what do you think about where is the right place for the JDBC jar driver?
Thanks in advance!
source
share