hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hotec04 <hao.l...@dish.com>
Subject Re: [Discuss] HBase with multiple threads
Date Fri, 06 Jun 2014 23:43:40 GMT
How did it work?

My design is like this:

each thread will call the write method, in the write method, the first
statement is creating the table like: 
table = connection.getTable(this.tableName);

then I set auto flush to false
then I put the table.put statement in a synchronized block like this:
					Put p = config.addRow(rowKey, value);
There is no error in this mode but there are some messages dropped while
flush the table.

Thank you!

View this message in context: http://apache-hbase.679495.n3.nabble.com/Discuss-HBase-with-multiple-threads-tp4060081p4060094.html
Sent from the HBase User mailing list archive at Nabble.com.

View raw message