继续前几篇内容,讲解hbase基本使用

1.进入hbase shell: hbase有很多种操作方式,比如shell,java客户端,webUI等,可以直接输入hbase进行提示

[root@master ~]# date
Fri Sep 8 22:50:06 CST 2017
[root@master ~]# hbase
Usage: hbase [<options>] <command> [<args>]
Options:
--config DIR Configuration direction to use. Default: ./conf
--hosts HOSTS Override the list in 'regionservers' file
--auth-as-server Authenticate to ZooKeeper using servers configuration Commands:
Some commands take arguments. Pass no args or -h for usage.
shell Run the HBase shell
hbck Run the hbase 'fsck' tool
snapshot Tool for managing snapshots
snapshotinfo Tool for dumping snapshot information
wal Write-ahead-log analyzer
hfile Store file analyzer
zkcli Run the ZooKeeper shell
upgrade Upgrade hbase
master Run an HBase HMaster node
regionserver Run an HBase HRegionServer node
zookeeper Run a Zookeeper server
rest Run an HBase REST server
thrift Run the HBase Thrift server
thrift2 Run the HBase Thrift2 server
clean Run the HBase clean up script
classpath Dump hbase CLASSPATH
mapredcp Dump CLASSPATH entries required by mapreduce
pe Run PerformanceEvaluation
ltt Run LoadTestTool
canary Run the Canary tool
version Print the version
CLASSNAME Run the class named CLASSNAME
[root@master ~]#

进入shell

[root@master ~]# date
Fri Sep 8 22:50:30 CST 2017
[root@master ~]# hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/hbase-1.3.1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/hadoop-2.7.4/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.3.1, r930b9a55528fe45d8edce7af42fef2d35e77677a, Thu Apr 6 19:36:54 PDT 2017 hbase(main):001:0>

2.查询所有表

hbase(main):001:0> list
TABLE
0 row(s) in 0.2560 seconds => []
hbase(main):002:0>

其它命令就不挨个讲解了,可以参考

http://blog.csdn.net/smcwwh/article/details/7468672

http://blog.csdn.net/wisgood/article/details/17576397

http://www.cnblogs.com/cxzdy/p/5583239.html

最新文章

  1. centos7时间同步和时区设置
  2. java 链接jdbc
  3. [原创] IIS7下顶级域名301跳转到WWW域名
  4. How to use the SQLIOSim utility to simulate SQL Server activity on a disk subsystem
  5. MyEclipse 8.0注冊码+原版下载_Java开发软件
  6. ViewDragHelper详解
  7. 日期和时间特效-查看&quot;今天是否为节假日&quot;
  8. 【php】error_reporting的用法
  9. spring8——AOP之Bean的自动代理生成器
  10. Alpha冲刺(4/10)——2019.4.26
  11. JVM性能调优总结
  12. [CocoaPods]使用Gemfile
  13. keras tensorboard的使用
  14. linux 删除指定日期之前的文件
  15. Office处理
  16. JAVASCRIPT 之escape 介绍
  17. sqlserver2008事物处理---待续
  18. JavaFX学习之Web
  19. 关于hashmap 与concurrentHashMap
  20. div 旋转

热门文章

  1. 字符串方法 split() &amp; replace()
  2. 2019.01.14 codeforces685B. Kay and Snowflake(树形dp)
  3. layer 弹框不显示内容
  4. IntelliJ IDEA 2017版 spring-boot 2.0.3 邮件发送搭建,概念梳理 (一)
  5. Spring boot 集成Dubbo简单版,准备工作,
  6. silverlight 父窗体传值给ChildWindow
  7. Maven之java application _HelloWord
  8. linux 修改ip 地址
  9. excel函数累加求和与累计百分比应用
  10. Max Sum—hdu1003(简单DP) 标签: dp 2016-05-05 20:51 92人阅读 评论(0)