sqoop free form query import to HBase not working -


i've got sqoop table import hbase working below:

sqoop import --connect jdbc:mysql://${mysql-server-address}/test -username root -password admin --table student --hbase-create-table --hbase-table student --column-family i

next step, trying free form query working well, someow, sqoop command below tried doesn't work expected, nothing has been imported source table target hbase table.

sqoop import --connect jdbc:mysql://${mysql-server-address}/test -username root -password admin --query 'select id, name student $conditions' --split-by student.id --hbase-create-table --hbase-table student --column-family i

is there missing 2nd sqoop command? document limited in terms of hbase import.

here log command 2 if helps:

13/08/06 21:15:43 info db.datadrivendbinputformat: boundingvalsquery: select min(t1.id), max(t1.id) (select * student  (1 = 1) ) t1 13/08/06 21:15:46 info mapred.jobclient: running job: job_201308061021_0025 13/08/06 21:15:47 info mapred.jobclient:  map 0% reduce 0% 13/08/06 21:19:08 info mapred.jobclient:  map 75% reduce 0% 13/08/06 21:19:09 info mapred.jobclient:  map 100% reduce 0% 13/08/06 21:19:12 info mapred.jobclient: job complete: job_201308061021_0025 13/08/06 21:19:12 info mapred.jobclient: counters: 17 13/08/06 21:19:12 info mapred.jobclient:   job counters 13/08/06 21:19:12 info mapred.jobclient:     slots_millis_maps=212866 13/08/06 21:19:12 info mapred.jobclient:     total time spent reduces waiting after reserving slots (ms)=0 13/08/06 21:19:13 info mapred.jobclient:     total time spent maps waiting after reserving slots (ms)=0 13/08/06 21:19:13 info mapred.jobclient:     launched map tasks=4 13/08/06 21:19:13 info mapred.jobclient:     slots_millis_reduces=0 13/08/06 21:19:13 info mapred.jobclient:   file output format counters 13/08/06 21:19:13 info mapred.jobclient:     bytes written=0 13/08/06 21:19:13 info mapred.jobclient:   filesystemcounters 13/08/06 21:19:13 info mapred.jobclient:     hdfs_bytes_read=441 13/08/06 21:19:13 info mapred.jobclient:     file_bytes_written=362752 13/08/06 21:19:13 info mapred.jobclient:   file input format counters 13/08/06 21:19:13 info mapred.jobclient:     bytes read=0 13/08/06 21:19:13 info mapred.jobclient:   map-reduce framework 13/08/06 21:19:13 info mapred.jobclient:     map input records=4 13/08/06 21:19:13 info mapred.jobclient:     physical memory (bytes) snapshot=428892160 13/08/06 21:19:13 info mapred.jobclient:     spilled records=0 13/08/06 21:19:13 info mapred.jobclient:     cpu time spent (ms)=7730 13/08/06 21:19:13 info mapred.jobclient:     total committed heap usage (bytes)=312672256 13/08/06 21:19:13 info mapred.jobclient:     virtual memory (bytes) snapshot=5353742336 13/08/06 21:19:13 info mapred.jobclient:     map output records=4 13/08/06 21:19:13 info mapred.jobclient:     split_raw_bytes=441 13/08/06 21:19:13 info mapreduce.importjobbase: transferred 0 bytes in 213.1239 seconds (0 bytes/sec) 13/08/06 21:19:13 info mapreduce.importjobbase: retrieved 4 records. 

--split-by student.id should --split-by id


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -