centos6.8单机安装HBase-创新互联-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
centos6.8单机安装HBase-创新互联

hadoop生态系统

创新互联建站服务项目包括武冈网站建设、武冈网站制作、武冈网页制作以及武冈网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,武冈网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到武冈省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

centos6.8单机安装HBase

HBase简介
–HBase–HadoopDatabase,是一个高可靠性、高性能、面向列、可伸缩、实时读写的分布式数据库
–利用HadoopHDFS作为其文件存储系统,利用HadoopMapReduce来处理HBase中的海量数据,利用Zookeeper作为其分布式协同服务

(1)安装的前提条件

此安装是在阿里云服务器上安装的,且java环境已经配好,hadoop和zookeeper都已经安装好并成功启动

(2)下载hbase-1.1.3-bin.tar.gz,上传并解压

进入conf目录下

1.在hbase-env.sh中配置JAVA_HOME

2.配置hbase-site.xml如下

hbase.rootdir

file:///opt/hbase   //hbase根目录

hbase.zookeeper.property.dataDir

/opt/zookeeper      //zookeeper根目录,要启动

(3)启动hbase

进入bin/目录

[root@tongbin]# ./start-hbase.sh        ./stop-hbase.sh

startingmaster, logging to /home/tong/hbase-1.1.3/bin/../logs/hbase-tong-master-tong.out

[root@tongbin]# jps

2442SecondaryNameNode

2148NameNode

2284-- process information unavailable

9112Jps

1074Application

7868QuorumPeerMain

2241DataNode

8848 HMaster

可以看到启动成功了

(4)测试hbase的shell

[root@tong bin]# ./hbase shell

SLF4J: Classpath contains multiple SLF4J bindings.

SLF4J: Foundbinding in[jar:file:/home/tong/hbase-1.1.3/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Foundbinding in [jar:file:/home/tong/hadoop-2.5.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Seehttp://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actualbinding is of type [org.slf4j.impl.Log4jLoggerFactory]

HBase Shell; enter'help' for list of supported commands.

Type"exit" to leave the HBase Shell

Version 1.1.3,r72bc50f5fafeb105b2139e42bbee3d61ca724989, Sat Jan 16 18:29:00 PST 2016

hbase(main):001:0>

hbase(main):002:0>list

hbase(main):002:0>status

1 servers, 0dead, 2.0000 average load

hbase(main):003:0>version

扩展:让浏览器访问hbase

#vim hbase-site.xml     添加以下内容

   hbase.master.info.port

   60010   //端口,任选

   hbase.master.info.bindAddress

   ip

# vim/etc/sysconfig/iptables  //让60010通过

# serviceiptables restart   //重启网卡

就可以在浏览器中访问了,浏览器访问http://ip:60010/

centos6.8单机安装HBase

至此,hbase的单机安装就结束了

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


本文标题:centos6.8单机安装HBase-创新互联
路径分享:http://scgulin.cn/article/dceddc.html