hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁景明 <futur...@gmail.com>
Subject about hbase transaction
Date Tue, 08 Mar 2011 08:05:35 GMT
*<http://hbase.apache.org/docs/r0.20.6/api/org/apache/hadoop/hbase/client/transactional/package-summary.html#package_description>
*Is there any example about transaction in hbase?

--------------------------------------------------------------------
begin transaction

Put p1=new Put("a".getBytes());
p1.put("f1".getBytes(),new byte[0],"v1".getBytes())
..................
Put p2=new Put("b".getBytes());
p2.put("f2".getBytes(),new byte[0],"v2".getBytes())

commit p1 in table1 and p2 in table2

end transaction

------------------------------------------------------------

thanks very much.

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