HBase安装

发布时间:2020-07-27 01:39:40 作者:q595754733
来源:网络 阅读:950


----------

<configuration>
	<property>
    <name>hbase.rootdir</name>
    <value>hdfs://hadoop-senior.huiyunltd.com:8020/hbase</value>
  </property>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>hadoop-senior.huiyunltd.com</value>
  </property>
</configuration>



-------------

[huiyunltd@hadoop-senior ~]$ /opt/modules/hadoop-2.5.0/sbin/start-dfs.sh

http://hadoop-senior.huiyunltd.com:50070

[huiyunltd@hadoop-senior ~]$ /opt/modules/hadoop-2.5.0/sbin/start-yarn.sh

http://hadoop-senior.huiyunltd.com:8088

[huiyunltd@hadoop-senior ~]$ /opt/modules/hbase-0.98.6-hadoop2/bin/start-hbase.sh

http://hadoop-senior.huiyunltd.com:60010

[huiyunltd@hadoop-senior ~]$ jps
2988 HQuorumPeer
3251 Jps
1984 NameNode
2522 NodeManager
2261 SecondaryNameNode
2424 ResourceManager
3046 HMaster
3139 HRegionServer
2078 DataNode

---

[huiyunltd@hadoop-senior ~]$ /opt/modules/hbase-0.98.6-hadoop2/bin/stop-hbase.sh
[huiyunltd@hadoop-senior ~]$ jps
1984 NameNode
2522 NodeManager
3985 Jps
2261 SecondaryNameNode
2424 ResourceManager
2078 DataNode

--

[huiyunltd@hadoop-senior ~]$ /opt/modules/hbase-0.98.6-hadoop2/bin/hbase shell

--

find /opt/modules/hadoop-2/share/hadoop -name "$Line" | xargs -i cp {} ./  

done  

find /opt/modules/hadoop-2.5.0/share/hadoop -name "hadoop*.jar" | xargs -i cp {} /opt/softwares/jar/

hadoop-client

find /opt/modules/hadoop-2.5.0/hadoop-client


替换JAR包

[huiyunltd@hadoop-senior ~]$ rm -rf /opt/modules/hbase-0.98.6-hadoop2/lib/hadoop*.jar
[huiyunltd@hadoop-senior ~]$ cp /opt/softwares/hbjar/* /opt/modules/hbase-0.98.6-hadoop2/lib/

help

create 'user','info'



describe 'user'


help 'put'


put 'user','1001','info:name','grace'

put 'user','1001','info:age','32'



三种查询方式

rowkey

hbase(main):008:0> get 'user','1001'

hbase(main):009:0> get 'user','1001','info:age'

范围查询

scan range

hbase(main):010:0> scan 'user'

全表扫描


推荐阅读:
  1. hbase 安装与讲解
  2. hbase安装详解

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

hbase

上一篇:python while循环(9)

下一篇:metasploit连接postgresql数据库

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》