The common method for adding (modifying) data in a table in Hbase is void put(put put), which returns no value
But if you put the same data, you get an error, which is not very friendly
So, there’s also the checkAndPut() method
But if you put the same data, you get an error, which is not very friendly
So, there’s also the checkAndPut() method
* Atomically checks if a row/family/qualifier value matches the expected
* value. If it does, it adds the put. If the passed value is null, the check
* is for the lack of column (ie: non-existance)
boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier,
byte[] value, Put put) throws IOException
If the data (Row, family, Qualifier, value) is present, then put will not be performed and false will be returned; otherwise, true will be performed
Therefore, this method is safer than the put() method.
Read More:
- hbase ERROR org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- The list command in HBase shell reported an error org.apache.hadoop . hbase.PleaseHoldException : Master is initializing
- Difference between isempty method and isblank method in stringutils
- Java query HBase outoforderscannernextexception
- Some problems in the development of HBase MapReduce
- HBase import CSV file
- ERROR: KeeperErrorCode = NoNode for /hbase/master
- “Method does not override method from its superclass”
- HBase shell input cannot be deleted using backspace
- Kylin startup error HBase common lib not found
- Solution of server not running yetexception in HBase
- How to Solve Hbase Error: Master is initializing
- [Solved] Import org.apache.hadoop.hbase.hbaseconfiguration package cannot be imported
- HBase hangs up immediately after startup. The port reports an error of 500 and hmaster aborted
- An error occurs when HBase uses the shell command: pleaseholdexception: Master is initializing solution
- Override the equals method and override the toString method
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Solve the problem that power view in Excel prompts activate method of oleobject class failed or activate method like oleobject is invalid
- Habse error: error: org.apache.hadoop . hbase.security.AccessDeniedException : Insufficient
- Hbase Native memory allocation (mmap) failed to map xxx bytes for committing reserved memory