Hbase-general-commands

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

HBase-一般コマンド

HBaseの一般的なコマンドは、status、version、table_help、およびwhoamiです。 この章では、これらのコマンドについて説明します。

状態

このコマンドは、システムで実行されているサーバーの詳細を含むシステムのステータスを返します。 その構文は次のとおりです。

hbase(main):009:0> status

このコマンドを実行すると、次の出力が返されます。

hbase(main):009:0> status
3 servers, 0 dead, 1.3333 average load

バージョン

このコマンドは、システムで使用されているHBaseのバージョンを返します。 その構文は次のとおりです。

hbase(main):010:0> version

このコマンドを実行すると、次の出力が返されます。

hbase(main):009:0> version
0.98.8-hadoop2, r6cfc8d064754251365e070a10a82eb169956d5fe, Fri Nov 14
18:26:29 PST 2014

table_help

このコマンドは、テーブル参照コマンドの使用方法と使用方法をガイドします。 以下に、このコマンドを使用する構文を示します。

hbase(main):02:0> table_help

このコマンドを使用すると、テーブル関連のコマンドのヘルプトピックが表示されます。 以下に、このコマンドの部分的な出力を示します。

hbase(main):002:0> table_help
Help for table-reference commands.
You can either create a table via 'create' and then manipulate the table
via commands like 'put', 'get', etc.
See the standard help information for how to use each of these commands.
However, as of 0.96, you can also get a reference to a table, on which
you can invoke commands.
For instance, you can get create a table and keep around a reference to
it via:
 hbase> t = create 't', 'cf'…...

私は誰

このコマンドは、HBaseのユーザー詳細を返します。 このコマンドを実行すると、以下に示すように現在のHBaseユーザーを返します。

hbase(main):008:0> whoami
hadoop (auth:SIMPLE)
groups: hadoop