Hi,
I wrote a test code as below: (TableInputFormat using "new Scan(scan)")
String tablename = "test8-1";
HBaseConfiguration config = new HBaseConfiguration();
HTable table = new HTable(config, tablename);
Scan s1 = new Scan();
Scan s2 = new Scan(s1);
ResultScanner rs = table.getScanner(s1); <== ok
//ResultScanner rs = table.getScanner(s2); <== can't get bulk load data.
Result r = null;
while((r =rs.next()) != null)
System.out.println("GET: " + r);
But when I try to scan bulk load data by "new Scan(scan)" then failed.
What's wrong?
Thanks.
Shen
|