7485

Deleting Columns in HBase

Question:

In HBase, calling DeleteColumn() method i.e., essentially a schema change to a column family or deleting column families will result in downtime of HBase Cluster?

Answer1:

The deleteColumn method on a <a href="http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Delete.html" rel="nofollow">Delete mutation</a> of HBase deletes specific column(s) from a specific row this is not a schema change since HBase does not retain a schema-level knowledge of columns of each row (and each row can have a different number and types of columns - think about it as a thinly populated matrix). The same is true for deleteFamily on this object.

There won't be a cluster downtime for this (and HBase will not actually delete the data until the next major compaction of the region)

If you want to drop a column family from the whole table you can do that via HBaseAdmin with the not so aptly named deleteColumn method (or the shell with alter 'table_name', {NAME => 'family_name', METHOD => 'delete'}) - in this case the table needs to be disabled first so while HBase won't suffer a downtime, the specific table will

Recommend

  • Graphql with nested mutations?
  • Using waitForKeyElements, is it possible to prevent the key element from being displayed, and only d
  • How to chain together Mutations in apollo client
  • With JQuery, is it possible to have a function run when a DOM element calls .remove()?
  • How to determine differences in two lists of data
  • Delphi XE6 - How to make user defined components image show up on the pallette
  • How do I retrieve table names in Cassandra using Java?
  • Cluster markers with osmdroid
  • Qt - Cannot get lambda to work [duplicate]
  • How to make a user wait with Laravel
  • What is Closure Compiler?
  • Delete std::shared_ptr without destroying the managed object?
  • Neo4j Cypher query performance optimization
  • How can I add web content type in liferay 6?
  • How to get a list with description of all dba packages
  • c++ using primitive types as a base class
  • How gzip file gets stored in HDFS
  • How to concat Pandas dataframe columns
  • Using same constraints in multiple classes
  • C#: Import/Export Settings into/from a File
  • R convert summary result (statistics with all dataframe columns) into dataframe
  • Cast between interfaces whose interface signatures are same
  • Breaking out column by groups in Pandas
  • Unable to get column index with table.getColumn method using custom table Model
  • C++ Partial template specialization - design simplification
  • Javascript simulate pressing enter in input box
  • Getting last autonumber in access
  • Where to put my custom functions in Wordpress?
  • Delete MySQLi record without showing the id in the URL
  • GridView Sorting works once only
  • Matrix multiplication with MKL
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Buffer size for converting unsigned long to string
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • Can't mass-assign protected attributes when import data from csv file
  • Binding checkboxes to object values in AngularJs
  • Unable to use reactive element in my shiny app
  • Converting MP3 duration time