HBase的使用命令总结

本文总结了HBase的使用步骤,从配置master和slave节点开始,详细介绍了如何启动Hadoop和HBase,以及如何在HBase shell中进行表的管理,包括创建、查看、修改、删除表,以及添加、查询和删除数据等操作。
摘要由CSDN通过智能技术生成

准备工作

配置好一个master,两个slave:slave1,slave2,启动hadoop

master结点

[root@master ~]# start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [master]
master: starting namenode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-namenode-master.out
slave2: starting datanode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-datanode-slave2.out
slave1: starting datanode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-datanode-slave1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-secondarynamenode-master.out
starting yarn daemons
starting resourcemanager, logging to /home/hadoop/hadoop-2.7.3/logs/yarn-root-resourcemanager-master.out
slave1: starting nodemanager, logging to /home/hadoop/hadoop-2.7.3/logs/yarn-root-nodemanager-slave1.out
slave2: starting nodemanager, logging to /home/hadoop/hadoop-2.7.3/logs/yarn-root-nodemanager-slave2.out
[root@master ~]# jps
5334 NameNode
5530 SecondaryNameNode
5690 ResourceManager
5981 Jps

slave1结点

[root@slave1 ~]# jps
5265 NodeManager
5155 DataNode
5459 Jps

slave2结点

[root@slave2 ~]# jps
5271 NodeManager
5160 DataNode
5497 Jps

启动hbase

master结点

[root@master ~]# start-hbase.sh
slave2: starting zookeeper, logging to /home/hadoop/hbase-1.2.6/bin/../logs/hbase-root-zookeeper-slave2.out
slave1: starting zookeeper, logging to /home/hadoop/hbase-1.2.6/bin/../logs/hbase-root-zookeeper-slave1.out
master: starting zookeeper, logging to /home/hadoop/hbase-1.2.6/bin/../logs/hbase-root-zookeeper-master
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值