hbase 入门

逻辑寻云使
• 阅读 1208

一、参考

elasticsearch 学习系列目录——更新ing

hbase quick start

二、hbase安装

2.1 下载

下载hbase

tar xzvf hbase-2.4.4-bin.tar.gz

2.2 运行HMaster

hbase 入门

hbase 入门

2.3 运行hbase shell

(1)报错

可能原因是java版本太高,重新安装配置JAVA_HOME
brew install openjdk@8
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/

hbase 入门

(2)运行hbase shell

hbase 入门

三、基本shell命令

命令描述
help使用帮助
create 'test', 'cf'创建一个表,必须包含 (1)表名; (2) ColumnFamily
list 'test'查看表的信息
describe 'test'查看表的详细信息
put 'test', 'row1', 'cf:a', 'value1'插入一行
put 'test', 'row2', 'cf:b', 'value2'插入一行
put 'test', 'row3', 'cf:c', 'value3'插入一行
scan 'test'获取表记录
get 'test', 'row1'获取指定行
disable 'test'禁用表
enable 'test'启用表
drop 'test'删除表
点赞
收藏
评论区
推荐文章
Easter79 Easter79
4年前
vue+element 表格formatter数据格式化并且插入html标签
前言   vue中element框架,其中表格组件,我既要行内数据格式化,又要插入html标签一贯思维,二者不可兼得也一、element表格数据格式化  !(https://oscimg.oschina.net/oscnet/3c43a1cb3cbdeb5b5ad58acb45a42612b00.p
Wesley13 Wesley13
4年前
java实现接口导出csv文件
<palign"center"<imgsrc"http://qiniu.tomxin.cn/blog/180920/5BkJdmB10j.png?imageslim"alt"MaterialRenderPhone"</p<h1align"center"<ahref"http://tomxin.cn"target"\
待兔 待兔
4年前
【Golang】Golang + jwt 实现简易用户认证
<p本文已同步发布到我的个人博客:<ahref"https://links.jianshu.com/go?tohttps%3A%2F%2Fglorin.xyz%2F2019%2F11%2F23%2FGolangjwtsimpleauth%2F"target"_blank"https://glorin.xyz/2019/11/23/Golang
Wesley13 Wesley13
4年前
Java面试
<divclass"htmledit\_views"id"content\_views"<pid"maintoc"<strong目录</strong</p<pid"Java%E5%9F%BA%E7%A1%80%EF%BC%9Atoc"style"marginleft:40px;"<ahref"Java%E5%
Wesley13 Wesley13
4年前
Activiti 工作流入门指南
<divclass"htmledit\_views"id"content\_views"<h1<aname"t0"</a概览</h1<p如我们的介绍部分所述,Activiti目前分为两大类:</p<ul<li<p<ahref"https://activiti.gitbook.io/activiti7deve
Stella981 Stella981
4年前
Python基础教程,Python入门教程(非常详细)
<divclass"htmledit\_views"id"content\_views"<p<ahref"http://c.biancheng.net/python/base/"rel"nofollow"第1章Python编程基础</a</p<p1.<ahref"http://c.biancheng.net/view/
Stella981 Stella981
4年前
CodeBlocks下载与安装教程
<divclass"htmledit\_views"id"content\_views"<p一、下载教程</p<p1.在浏览器上搜索CodeBlocks官网或者直接输入网址<ahref"http://www.codeblocks.org/"rel"nofollow"http://www.codeblocks.org/进入Co
Wesley13 Wesley13
4年前
Java分布式锁之数据库实现
<divid"cnblogs\_post\_body"class"blogpostbody"<p之前的文章<ahref"http://www.cnblogs.com/garryfu/p/7978611.html"target"\_blank"《Java分布式锁实现》</a中列举了分布式锁的3种实现方式,分别是基于数据库实现,基于缓存
Wesley13 Wesley13
4年前
(寒假开黑gym)2017
<ahref"https://codeforces.com/gym/101933/"target"\_blank"style"fontsize:24px;"<strong传送门</strong</a付队!(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.
Stella981 Stella981
4年前
Hbase Shell 搭建Docker测试环境&常用命令
_测试环境安装与配置:_dockersearchhbasepull稳定版dockerpullharisekhon/hbase:1.3dockerrundhapp.hbase.comp2181:2181p8080:8080p8085:8085p9090:9090p9095
Stella981 Stella981
4年前
Neo4j删除节点和关系、彻底删除节点标签名
<divclass"htmledit\_views"id"content\_views"<p<ahref"https://www.jianshu.com/p/59bd829de0de"rel"nofollow"datatoken"720f42e8792665773f66044d30a60222"https://www.jians