Hbase 2.1.0 安装

环境准备

cd /usr/lib&&ln -s /opt/apps/hbase-2.1.0 hbase-current

# set the hbase home
export HBASE_HOME="/usr/lib/hbase-current"

# set hbase log dir
export HBASE_LOG_DIR="/data/bigdata/log/hadoop-hbase"

if [[ -n $HBASE_HOME ]]; then
  export PATH=$HBASE_HOME/bin:$PATH
fi

修改配置

hbase-site.xml

<configuration>                                                                  
  <property>                                                                     
    <name>hbase.zookeeper.quorum</name>                                          
    <value>master,node1,node2</value>                                            
    <description>The directory shared by RegionServers.                          
    </description>                                                               
  </property>                                                                    
  <property>                                                                     
    <name>hbase.zookeeper.property.dataDir</name>                                
    <value>/hbase/zk-data/zookeeper</value>                                      
    <description>Property from ZooKeeper config zoo.cfg.                         
    The directory where the snapshot is stored.                                  
    </description>                                                               
  </property>                                                                    
  <property>                                                                     
    <name>hbase.rootdir</name>                                                   
    <value>hdfs://master:9000/hbase</value>                                      
    <description>The directory shared by RegionServers.                          
    </description>                                                               
  </property>                                                                    
  <property>                                                                     
    <name>hbase.cluster.distributed</name>                                       
    <value>true</value>                                                          
    <description>The mode the cluster will be in. Possible values are            
      false: standalone and pseudo-distributed setups with managed ZooKeeper     
      true: fully-distributed with unmanaged ZooKeeper Quorum (see hbase-env.sh) 
    </description>                                                               
  </property>

<property>
  <name>hbase.unsafe.stream.capability.enforce</name>
  <value>false</value>
</property>                                                             
</configuration>                                                                 

hbase-env.sh

# Tell HBase whether it should manage it's own instance of ZooKeeper or not.
# export HBASE_MANAGES_ZK=true
export HBASE_MANAGES_ZK=false

启动

hbase-daemon.sh  start master & (master)

hbase-daemon.sh  start regionserver & (all)

遇到问题

1.java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder

cp  $HBASE_HOME/lib/client-facing-thirdparty/htrace-core-3.1.0-incubating.jar $HBASE_HOME/lib/
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 简介 HBase是高可靠性,高性能,面向列,可伸缩的分布式存储系统,利用HBase技术可在廉价PC Serve...
    九世的猫阅读 6,718评论 1 6
  • cocoapods安装过3次都蜜汁失败 在第七次终于成功 下列附上过程 有耐心的朋友可以试试的我的步骤和方法 ps...
    _Dam0n阅读 7,372评论 0 1
  • 1、运行环境 主机IP 主机名 2、配置主机名(分别在五台机器上执行) hostname +主机名例如: h...
    献给记性不好的自己阅读 9,002评论 0 6
  • 国庆假期最后一天,抓住假期的尾巴,想去看最近热映的电影《羞羞的铁拳》。我是一个爱热闹的人,哪受得了形单影只,...
    如若木槿花开阅读 1,544评论 0 0
  • (十)坠入温柔乡 溶洞口是在半山腰上,我们要顺着一层层石阶走上去。身边陆续走过一些挎着大包小包的游人,有男有女有老...
    扯闲话阅读 2,865评论 0 0

友情链接更多精彩内容