Es-hbase-hbase-count-truncate

提供:Dev Guides
移動先:案内検索

HBase El Conde y Truncar

レクエント

プエタ・コンタル・エル・ヌメロ・デ・フィラス・デ・ウナ・タブラ・メディアン・エル count コマンド。 Su sintaxis es la siguiente:

count ‘<table name>’

初級編、初級編、初版編。 継続的な検証を行います。

hbase(main):023:0> count 'emp'
2 row(s) in 0.090 seconds
=> 2

切り捨て

Esta comando desactiva gotas y recrea una tabla。 ラ・シンタクシス・デ truncate es la siguiente:

hbase> truncate 'table name'

継続的な教育機関です。 Aquíhemos truncado el emp

hbase(main):011:0> truncate 'emp'
Truncating 'one' table (it may take a while):
   - Disabling table...
   - Truncating table...
  0 row(s) in 1.5950 seconds

Tras truncarse la tabla、utilice el comando escanear para verificar。 使用済みのタブラコンセロフィラス。

hbase(main):017:0> scan ‘emp’
ROW                  COLUMN+CELL
0 row(s) in 0.3110 seconds