返回介绍

HBase 常用命令 - HBase 教程

发布于 2025-02-22 13:46:36 字数 1393 浏览 0 评论 0 收藏 0

HBase 常用命令 status, version, table_help 和 whoami。本章将介绍了这些命令。

status

命令返回包括在系统上运行的服务器的细节和系统的状态。它的语法如下:

hbase(main):009:0> status

如果执行这个命令,它会返回下面的输出

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

version

该命令返回 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'…...

whoami

该命令返回 HBase 用户详细信息。如果执行这个命令,返回当前 HBase 用户,如下图所示

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文