zoukankan      html  css  js  c++  java
  • hbase安装

    HBase 安装部署

    1 Zookeeper 正常部署

      首先保证 Zookeeper 集群的正常部署,并启动之:

      [atguigu@hadoop102 zookeeper-3.4.10]$ bin/zkServer.sh start

      [atguigu@hadoop103 zookeeper-3.4.10]$ bin/zkServer.sh start

      [atguigu@hadoop104 zookeeper-3.4.10]$ bin/zkServer.sh start

    2 Hadoop 正常部署

      Hadoop 集群的正常部署并启动:

      [atguigu@hadoop102 hadoop-2.7.2]$ sbin/start-dfs.sh

      [atguigu@hadoop103 hadoop-2.7.2]$ sbin/start-yarn.sh

    3 HBase 的解压

      解压 Hbase 到指定目录:

      [atguigu@hadoop102 software]$ tar -zxvf hbase-1.3.1-bin.tar.gz -C /opt/module

    4 HBase 的配置文件 修改 HBase 对应的配置文件。

      1)hbase-env.sh 修改内容:

        export JAVA_HOME=/opt/module/jdk1.6.0_144 export HBASE_MANAGES_ZK=false

       2)hbase-site.xml 修改内容:

         hbase.rootdir hdfs://hadoop102:9000/HBase hbase.cluster.distributed true hbase.master.port 16000 hbase.zookeeper.quorum hadoop102,hadoop103,hadoop104 

         hbase.zookeeper.property.dataDir /opt/module/zookeeper-3.4.10/zkData

      3)regionservers: hadoop102 hadoop103 hadoop104 4)

      4)软连接 hadoop 配置文件到 HBase:

       [atguigu@hadoop102 module]$ ln -s /opt/module/hadoop2.7.2/etc/hadoop/core-site.xml /opt/module/hbase/conf/coresite.xml

       [atguigu@hadoop102 module]$ ln -s /opt/module/hadoop2.7.2/etc/hadoop/hdfs-site.xml /opt/module/hbase/conf/hdfssite.xml 

    5.启动方式

      [atguigu@hadoop102 hbase]$ bin/hbase-daemon.sh start master [atguigu@hadoop102 hbase]$ bin/hbase-daemon.sh start regionserver

  • 相关阅读:
    git命令回退代码并同步到远程仓库
    git拉取远程指定分支
    vue动态绑定样式
    友链
    css三大特性
    CSS的背景background
    元素显示模式(块元素、行内元素、行内块元素)
    CSS复合选择器
    快速生成HTML结构+CSS样式语法
    文本属性
  • 原文地址:https://www.cnblogs.com/fengchuiguobanxia/p/15268675.html
Copyright © 2011-2022 走看看