hadoop - Sqoop list-tables issue -
i'm using hortonworks sandbox 2.2 vm , having issues when running sqoop against oracle. i'm executing command like:
sqoop list-tables --connect jdbc:oracle:thin:@mydbhost.com:1521/sid --username user --password password
it executes, nothing happens:
warning: /usr/hdp/2.2.4.2-2/accumulo not exist! accumulo imports fail. please set $accumulo_home root of accumulo installation. 15/05/29 15:55:58 info sqoop.sqoop: running sqoop version: 1.4.5.2.2.4.2-2 15/05/29 15:55:58 warn tool.basesqooptool: setting password on command-line insecure. consider using -p instead. 15/05/29 15:55:58 info oracle.oraoopmanagerfactory: data connector oracle , hadoop disabled. 15/05/29 15:55:58 info manager.sqlmanager: using default fetchsize of 1000 slf4j: class path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/usr/hdp/2.2.4.2-2/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/usr/hdp/2.2.4.2-2/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/usr/hdp/2.2.4.2-2/hive/lib/hive-jdbc-0.14.0.2.2.4.2-2-standalone.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation. slf4j: actual binding of type [org.slf4j.impl.log4jloggerfactory] 15/05/29 15:55:59 info manager.oraclemanager: time zone has been set gmt
if specify --driver oracle.jdbc.oracledriver parameter, list-tables command works fine, import fails error "ora-00933: sql command not ended". read in several places specifying --driver argument not right way go things, when don't specify can't work.
what doing wrong here?
try below steps 1. placed ojdbc6.jar in $sqoop_home/lib 2. removed --driver option 3. quoted parameters
Comments
Post a Comment