How describe Hbase column family?

后端 未结 3 652
暖寄归人
暖寄归人 2021-02-07 23:31

I am looking for a command which describes the columnfamily inside the table from the HBase Shell. I could not get any command to try this.

3条回答
  •  忘了有多久
    2021-02-07 23:52

    There is no command to describe the Hbase column family (which can display the column qualifiers), but I used Hue Hbase Browser, it has a smartview, which can display column qualifiers of a column family.

    (It can not show all the column qualifiers of column family( like describe), but it can show a record with all the column qualifiers, which is helpful for me to understand CF) (Something is better than nothing).

    You can refer this link for more information: http://gethue.com/the-web-ui-for-hbase-hbase-browser/.

    NOTE: Here is a sample page screenshot, showing column qualifiers of a Column Family ("p")

    If this is not helpful, you can write a Happy Script to display all the column qualifiers of a given Column Family, or you can use this API.

    getFamilyMap public NavigableMap getFamilyMap(byte[] family)

    Map of qualifiers to values. Returns a Map of the form: Map

    Parameters:

    family - column family to get

    Returns: map of qualifiers to values

    UPDATE #1

    Recently I wrote a Java program to display the column family and column qualifiers of a hbase table. Remember, this program will do a full table scan and analyze every cell, to get the qualifier names.Might take very longer for larger tables.

    Here is the link for the program.

提交回复
热议问题