Import BLOB (Image) from oracle to hive

后端 未结 1 678
你的背包
你的背包 2021-01-16 21:22

I am trying to import BLOB(Image)data form oracle to Hive using below Sqoop command.

sqoop import --connect jdbc:oracle:thin:@host --username --password  --m         


        
相关标签:
1条回答
  • 2021-01-16 22:05

    Sqoop does not know how to map blob datatype in oracle into Hive. So You need to specify --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
    
    0 讨论(0)
提交回复
热议问题