赞
踩
要快速启动单机版的HBase,你可以遵循以下步骤:
环境准备:
JAVA_HOME
环境变量已经正确设置。启动ZooKeeper(如果HBase配置为使用独立的ZooKeeper实例):
/path/to/zookeeper/bin/zkServer.sh start
命令完成。但是,如果是使用HBase内置的ZooKeeper,则不需要这一步,因为启动HBase时会自动启动ZooKeeper。启动HBase:
./bin/start-hbase.sh
;在Windows系统上则是bin\start-hbase.cmd
。cd /path/to/hbase
./bin/start-hbase.sh # Linux或Mac
bin\start-hbase.cmd # Windows
验证HBase是否启动成功:
./bin/hbase shell
(Linux或Mac)或bin\hbase shell.cmd
(Windows)。./bin/hbase shell # Linux或Mac
bin\hbase shell.cmd # Windows
list
来查看是否有表存在,或者直接输入exit
来退出Shell。监控HBase:
http://localhost:16010
访问。如果在启动过程中遇到任何问题,检查HBase的日志文件(通常位于/path/to/hbase/logs
目录下)以获取错误信息和调试提示。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。