hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ChingShen <chingshenc...@gmail.com>
Subject Can't scan bulk load data by "new Scan(scan)"
Date Mon, 22 Feb 2010 07:42:54 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message