J'KYO
No pains,no gains.

 

我的ORACLE 是11G  ,找到ojdbc6.jar,放到sqoop 的lib 下面,我的是cloudera 集群,目录是

/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sqoop/lib 

/opt/cm-5.10.0/share/cmf/lib/ojdbc6.jar

/var/lib/sqoop2/ojdbc6.jar

导入oracle数据

 

--导入方法

$ sqoop import   --hive-import --connect jdbc:oracle:thin:@//192.168.56.111:1521:DBNAME --username USERNAME(大写) --password PASSWORD --verbose -m 1 --table TABLENAME(大写)

https://blog.csdn.net/Eason_oracle/article/details/76836758

https://community.hortonworks.com/questions/54626/sqoop-error-with-oracle-could-not-load-db-driver-c.html

https://issues.apache.org/jira/browse/SQOOP-2502

https://community.cloudera.com/t5/Data-Ingestion-Integration/Use-sqoop-to-import-Oracle-table-to-HFDS-Oracle-JDBC-jar-is-not/td-p/1453

posted on 2018-04-27 15:09  J'KYO  阅读(451)  评论(0编辑  收藏  举报