Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 09-20-2014 01:39 PM - edited 09-16-2022 02:08 AM
Hi,
I am testing loading oracle tables into hdfs/hadoop/hive with the following command
sqoop import --connect jdbc:oracle:thin:@<host>:<port>/<db>--username <user name> -P --table <TABLE>
i have copied ojdbc5.jar and ojdbc6.jar files in /usr/lib/sqoop/lib/ on the node from where I am running SQOOP.
I am getting the following error
java.lang.RuntimeException: Could not load db driver class: oracle.jdbc.OracleDriver
I also tried
export SQOOP_CLASSPATH=/usr/lib/sqoop/lib/*
any ideas...?
thanks
Created 09-21-2014 11:46 AM
all,
I found a solution and here it is
If parcels are used then copy oracle jdbc driver to /opt/cloudera/parcels/CDH/lib/sqoop/lib
Copying ojdbc5.jar to /opt/cloudera/parcels/CDH/lib/sqoop/lib resolved my issue
Thanks,
Prakash
Created 09-20-2014 03:15 PM
Created 09-21-2014 11:46 AM
all,
I found a solution and here it is
If parcels are used then copy oracle jdbc driver to /opt/cloudera/parcels/CDH/lib/sqoop/lib
Copying ojdbc5.jar to /opt/cloudera/parcels/CDH/lib/sqoop/lib resolved my issue
Thanks,
Prakash