The invention discloses an HBASE real-
time data barrier-free writing
processing method based on a reading and writing lock
algorithm. The method comprises the following steps of 1, banning merging and splitting of HBase through an internal
package; 2, defining a
global variable; 3, using a constructor; 4, conducting writing
processing, wherein a writing lock is added when data is written, the data is stored in a
client buffering
list, and releasing of the writing lock is completed; 5, conducting reading
processing, wherein a reading lock is added when the data is read, the data is submitted to the HBASE
server side, and releasing of the reading lock is completed; 6, starting a thread. Compared with the prior art, by the adoption of a
JAVA programming language and by utilizing the reading and writing lock
algorithm in the
JAVA programming language, a
client side defines that automatic refreshing of submitting is False, the buffering
list obtains the writing lock to store the data, and a timed task is started to obtain the read lock to call an HBase API to achieve submitting of the data. The HBASE real-
time data barrier-free writing processing method solves the problem that, since high-
concurrency real-time writing data consumption is too slow, stacking of a large amount of data is generated in a
queue.