hortonworks data platform - Oraoop disabled for Sqoop import -


i'm using hortonworks hdp sandbox, , i’ve installed oraoop per instructions, whenever run sqoop import message “oracle.oraoopmanagerfactory: data connector oracle , hadoop disabled.”. i’m not sure else need pick up. have verified oraoop driver in sqoop lib directory. imports work, using oracle driver, , play around of features oraoop.

this command i'm running:

sqoop-import --connect jdbc:oracle:thin:@<ip>:1521/sid --username myuser -p --query "select * mytable \$conditions" -split-by sequence_id -as-sequencefile --target-dir /user/hue/data/deactivatedsponsor 

if '--query' argument specified in place of '--table' parm, oraoop connector not used. following mentioned in sqoop documentation

data connector oracle , hadoop accepts responsibility sqoop jobs following attributes:

oracle-related

table-based - jobs table argument used , specified object table.

following command should use oraoop connector. have included "--direct" option indicates sqoop oraoop should used.

sqoop-import --connect jdbc:oracle:thin:@<ip>:1521/sid --direct --username myuser -p --table mytable -split-by sequence_id -as-sequencefile --target-dir /user/hue/data/deactivatedsponsor --columns <columns list> --where <where condition if needed> 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -