zoukankan      html  css  js  c++  java
  • hbase集群部署

    解压hbase后

    cd conf

    vim hbase-site.xml

    <configuration>
    <property>
    <name>hbase.rootdir</name>
    <value>hdfs://ubuntu-00:9000/hbase</value>
    </property>
    
    <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
    </property>
    
    <property>
    <name>hbase.zookeeper.quorum</name>
    <value>ubuntu-00:2181,ubuntu-01:2181</value>
    </property>
    </configuration>

    vim hbase-env.sh

    设置java_home以及修改hbase_manages_zk

    vim regionserver

    加入服务器主机名

    /hbase-2.1.2/lib/client-facing-thirdparty目录下的

    htrace-core-3.1.0-incubating.jar 复制到/hbase-2.1.2/lib即可。

    scp hbase安装包至其他器

    配置环境变量

    hbase启动命令:

    start-hbase.sh

    注:启动hbase前应该保证hdfs和zookeeper已启动

  • 相关阅读:
    Lookup注解
    解决数据量大,分页查询慢的方案
    一个http的请求分析
    MYSQL
    什么是性能优化
    编码规范随笔
    装饰者模式
    单例模式
    J.U.C并发包(1)
    Java内存模型
  • 原文地址:https://www.cnblogs.com/ldy233/p/11564612.html
Copyright © 2011-2022 走看看