Forum

This topic contains 0 replies, has 1 voice, and was last updated by  Avikumar 2 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1279 Reply

    Avikumar
    Participant

    Scaning using HBase Shell:-
    The scan command is used to view the data in HTable. Using the scan command, you can get the table data. Its syntax is as follows:
    scan ‘<table name>’

    HBase – Count & Truncate:-
    count
    You can count the number of rows of a table using the count command. Its syntax is as follows:
    count ‘<table name>’

    truncate
    This command disables drops and recreates a table. The syntax of truncate is as follows:
    hbase> truncate ‘table name’

    HBase – Security

    grant
    The grant command grants specific rights such as read, write, execute, and admin on a table to a certain user. The syntax of grant command is as follows:
    hbase> grant <user> <permissions> [<table> [<column family> [<column; qualifier>]]

    revoke:-
    The revoke command is used to revoke a user’s access rights of a table. Its syntax is as follows:
    hbase> revoke <user>
    The following code revokes all the permissions from the user named ‘Tutorialspoint’.
    hbase(main):006:0> revoke ‘Tutorialspoint’
    user_permission
    This command is used to list all the permissions for a particular table. The syntax of user_permission is as follows:
    hbase>user_permission ‘tablename’
    The following code lists all the user permissions of ‘emp’ table.
    hbase(main):013:0> user_permission ’emp’

Viewing 1 post (of 1 total)
Reply To: HBase – Scan
Your information:




cf22

Your Name (required)

Your Email (required)

Subject

Phone No

Your Message

Cart

  • No products in the cart.