Oracle
 sql >> Database >  >> RDS >> Oracle

Importa BLOB (immagine) da Oracle a Hive

Sqoop non sa come mappare il tipo di dati BLOB in Oracle in Hive. Quindi devi specificare --map-column-hive COLUMN_BLOB=binary

sqoop import --connect 'jdbc:oracle:thin:@host' --username $USER --password $Password  --table $TABLE  --hive-import --hive-table $HiveTable  --map-column-hive COL_BLOB=binary --delete-target-dir --target-dir $TargetDir  -m 1 -verbose