Skip to content

Instantly share code, notes, and snippets.

@ivankelly
Last active August 29, 2015 14:24
Show Gist options
  • Save ivankelly/90a7fe496755b404ab36 to your computer and use it in GitHub Desktop.
Save ivankelly/90a7fe496755b404ab36 to your computer and use it in GitHub Desktop.
Connection conn = ConnectionFactory.createConnection(hbaseConf);
TableName tableName = TableName.valueOf("FOOBAR");
HBaseExclusiveWriter writer = HBaseExclusiveWriter.acquire(conn, tableName, mySequence);
Put p = writer.setWriterSeqNo(new Put(Bytes.toBytes("myRow")));
p.addColumn(FAMILY, QUALIFIER, value);
table.put(p);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment