I want to import tables which containing blob fields from oracle to hbase using sqoop.
I used below command:
sqoop import --connect jdbc:oracle:thin:@10.2.152.241:1521:QASOURCE
--username devsrc --table fnd_lobs --password devsrc --hbase-table fndlobs
--column-family cf --hbase-row-key file_id --columns file_id,file_name,file_data,upload_date,expiration_date,program_name
--hbase-create-table --as-sequencefile --verbose -m1
Here file_data
is a blob column.
The query is executing, but the output of hbase does not display the file_data
field.
Output of hbase:
238883 column=cf:program_name, timestamp=1386805999370, value=PER_ADDR_gb_UK.pdf
238883 column=cf:upload_date, timestamp=1386805999370, value=2004-07-01 04:33:40.0
238884 column=cf:file_name, timestamp=1386805999370, value=/appltop/115/per/11.5.0/patch/115/publisher/tem
plates/PER_WS1_gb_UK.pdf
238884 column=cf:program_name, timestamp=1386805999370, value=PER_WS1_gb_UK.pdf
238884 column=cf:upload_date, timestamp=1386805999370, value=2004-07-01 04:33:41.0
238885 column=cf:file_name, timestamp=1386805999370, value=/appltop/115/per/11.5.0/patch/115/publisher/tem
plates/PER_WS3_gb_UK.pdf
238885 column=cf:program_name, timestamp=1386805999370, value=PER_WS3_gb_UK.pdf
238885 column=cf:upload_date, timestamp=1386805999370, value=2004-07-01 04:33:49.0
238886 column=cf:file_name, timestamp=1386805999370, value=/appltop/115/per/11.5.0/patch/115/publisher/tem
plates/PER_WS4_gb_UK.pdf
The output is not displaying the file_data
field. How to rectify this problem?