Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement write Operation in hbase API

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to achieve hbase API write operation", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to achieve hbase API write operation" this article.

SetAutoFlush (flase)

Disable automatic refresh of HTable

If it is not closed, the put instance will be transferred to the region server one by one; when closed, HTable.put (Put) will be written to the cache until the write buffer is filled up. Can display the write data, flushCommits () method. The close () method of the HTable instance also implicitly calls flushCommits ()

For relatively unimportant data, WAL can improve the performance of data writing by calling the Put.setWriteToWAL (false) or Delete.setWriteToWAL (false) function to discard writing WAL logs during the Put/Delete operation.

Important data, it is best to write WAL, when focusing on throughput, use batch import. (Bulk load)

The above is all the contents of the article "how to write hbase API". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report