February 2019
Beginner to intermediate
544 pages
14h 36m
English
Deleting the record from the HBase table is also likely in some use cases. The Delete call can be used to delete a row or column family. You can also delete multiple rows or a column family by passing list of Delete object to table delete method, as follows:
import org.Apache.Hadoop.conf.Configuration;import org.Apache.Hadoop.hbase.HBaseConfiguration;import org.Apache.Hadoop.hbase.client.Delete;import org.Apache.Hadoop.hbase.client.HTable;import org.Apache.Hadoop.hbase.util.Bytes;import java.io.IOException;import java.util.ArrayList;import java.util.List;public class HBaseDeleteExample { public static void main(String[] args) throws IOException { Configuration conf = HBaseConfiguration.create(); HTable table = new HTable(conf ...
Read now
Unlock full access