`

HBase: Install

 
阅读更多

EVN: hadoop2.3.0  ubuntu12.04 64     hue3.5.0   pig0.12.0    hive0.12.0   oozie4.0.0 

 

Install

Download tarball form http://mirrors.cnnic.cn/apache/hbase/hbase-0.98.0/

#tar -xzvf  hbase-0.98.0-hadoop2-bin.tar.gz 
#cd hbase-0.98.0-hadoop2

Configure

Note:the following conf is suited to fully-distributed mode not standalone mode.

 

-------system env ----

In the file /etc/security/limits.conf add a line like:

hadoop  -       nofile  32768

Replace hadoop with whatever user is running Hadoop and HBase. If you have separate users, you will need 2 entries, one for each user. In the same file set nproc hard and soft limits. For example:

hadoop soft/hard nproc 32000

In the file /etc/pam.d/common-session add as the last line in the file:

session required  pam_limits.so

Don't forget to log out and back in again for the changes to take effect!

 

-------conf/hbase-env.sh-----

export JAVA_HOME=/usr/lib/jvm/java-7-oracle

export HBASE_MANAGES_ZK=false

//To point HBase at an existing ZooKeeper cluster, one that is not managed by HBase. Next set ensemble locations and client port, if non-standard, in hbase-site.xml, or add a suitably configured zoo.cfg to HBase's CLASSPATH.

A distributed Apache HBase installation depends on a running ZooKeeper cluster

 

 

------conf/hbase-site.xml----

<property>
    <name>hbase.rootdir</name>
    <value>hdfs://192.168.122.1:2014/hbase</value>

</property>
<property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
</property>

 

<property>
      <name>hbase.zookeeper.property.clientPort</name>
      <value>2181</value>    
</property>
<property>
      <name>hbase.zookeeper.quorum</name>
     <value>zhj-c0,zhj-c1,zhj-c2</value>
</property>
<property>
      <name>hbase.zookeeper.property.dataDir</name>
      <value>/home/zhaohj/hadoop/zookeeper-3.4.6/snapshot</value>    
</property>

 

-----conf/regionservers----

192.168.122.2
192.168.122.3
192.168.122.4
==> hadoop slaves

 

When all configuration completed, distribute the hbase-0.98.0-hadoop2 dir to all node in cluster.

 

 Start/Stop

#bin/start-hbase.sh
#bin/stop-hbase.sh 
#bin/hbase shell

 

 

 reference:

 official documents in tarball

 

分享到:
评论

相关推荐

    spring-boot-starter-hbase:Spring Boot Starter HBase的

    gradle clean install 使用方式 依赖 compile "org.banyan.spring.boot:spring-boot-starter-hbase:1.0.0" 集成 在spring-boot项目的application.properties文件中加入spring.data.hbase.quorum,spring.data.hbase....

    thumbor_hbase:用于Thumbor(https的hbase存储

    用于Thumbor的HBase存储模块介绍是一种智能成像服务。...在Ubuntu / Debian系统上安装您可以遵循适用于Ubuntu / Debian Systems Systems的,并安装以下软件包: sudo apt-get install hadoop-0.20 hadoop-0.20

    Hadoop搭建详细流程

    在本文中,我们将详细探讨如何搭建Hadoop和HBase环境,尤其关注在Ubuntu虚拟机上进行的安装步骤。首先,我们需要了解Hadoop和HBase的基本概念。 Hadoop是一个开源的分布式计算框架,由Apache基金会开发,它允许在...

    第二步-hbase-hbase-1.2.9在centos7上部署安装(单机版).zip

    sudo yum install java-1.8.0-openjdk-devel ``` 2. **下载HBase**: HBase 1.2.9的源代码可以从Apache官网下载。访问官方网站,找到对应版本的tarball文件,如`hbase-1.2.9-bin.tar.gz`,并将其下载到你的...

    hbase-exporter:HBase Prometheus导出器

    hbase-exporterHBase Prometheus导出器收集指标并中继JMX指标以供Prometheus使用由于JMX中一些重要的指标缺失或为空,因此我们另外分析了HBase主界面,例如“过渡中的过时区域” 解析“ hbase hbck”命令的输出以...

    python3连接hbase包

    通常,你可以使用 pip(Python 的包管理器)来安装,命令可能是 `pip install happybase` 或者是特定的包名(如果它有替代的名字)。HappyBase 是一个流行的 Python 库,它提供了简单易用的接口来操作 HBase。 接...

    hbase-2.0.0.3.0.0.0-1634-bin.tar.gz

    3. 编译过程:进入源码目录,运行`mvn clean install -DskipTests`命令进行编译。这个过程可能需要一段时间,因为Maven会下载所有的依赖并编译源码。 4. 验证编译:如果编译成功,你会在target目录下看到编译后的可...

    hbase-doc-zh:HBase 中文参考指南

    pip install hbase-doc-zh hbase-doc-zh # 访问 http://localhost:{port} 查看文档 NPM npm install -g hbase-doc-zh hbase-doc-zh # 访问 http://localhost:{port} 查看文档 贡献指南 项目当前处于校对阶段,请...

    阿里巴巴开源的Hbase Client node-hbase-client.zip

    当前状态:完全通过 HBase 0.94 和 0.94.16Java hbase-client支持 HBase 服务器的版本[√] 0.94.x[√] 0.94.0[√] 0.94.160.95.x0.96.x安装$ npm install hbase-client使用 CRUD:通过 zookeeper 创建 HBase ...

    hidea:用于Intellij Idea的HBase插件

    用于IntelliJ IDEA的Hbase插件 描述 提供hbase表的简单查询接口。 该插件主要用于开发/测试目的(尤其是本地开发数据库),因此可能不支持配置选项的... mvn install:install-file -Dfile=forms_rt.jar -DgroupId=com

    HBase.Design.Patterns

    Starting with the basics, this book will show you how to install HBase in different node settings. You will then be introduced to key generation and management and the storage of large files in HBase....

    虚拟机环境下Hadoop2.7.1+HBase1.3.5安装配置手册 .docx

    sudo yum install openssh-server ``` - **生成公钥**: ```bash ssh-keygen ``` - **公钥复制**: ```bash ssh-copy-id root@hbase02 ``` - **验证**: ```bash ssh hbase02 ``` 如果一切正常,应能直接...

    通过thrift使用c++访问hbase

    【标题】: "通过Thrift使用C++访问HBase" 【描述】: "本文档详述了如何在Linux和Windows环境下配置Thrift环境并使用HBase的C++客户端。" 【标签】: "hadoop hbase thrift boost" 在IT领域,特别是大数据处理中,...

    Python连接Hbase

    pip install happybase ``` 2. **配置连接**:在使用`happybase`之前,需要配置HBase服务器的地址和端口。例如: ```python import happybase connection = happybase.Connection('localhost', port=9090) `...

    python3 hbase 库

    确保你的Python环境已经配置好,然后你可以通过`pip install -e /path/to/hbase`(替换/path/to/hbase为你的实际路径)来安装这个库。安装完成后,你可以在Python脚本中通过`import happybase`来引入HBase库。 2. *...

    python thrift2 connect hbase

    pip install thrift ``` 接着,你需要下载HBase的Thrift IDL文件(通常为hbase.thrift),这个文件定义了HBase服务的所有操作和数据类型。然后使用thrift编译器将此文件转换为Python代码: ``` thrift -gen py hbase...

    benchmark_hbase_cassandra:使用 YCSB 对 HBase 和 Cassandra 进行基准测试的脚本

    -------用法-------------- a) 编辑文件以包含您的用户名和文件夹 b) 运行 hadoop_master.sh c) 运行 zookeeper.sh d) 运行 hbase_install。嘘CassandraLoad.txt 该文件包含用于加载 cassandra 的命令。 HBaseLoad....

    python操作hbase

    ### Python 操作 HBase #### 引言与目标 本文旨在详细介绍如何使用Python来操作HBase数据库。HBase是基于Hadoop的一个分布式、多维排序的映射表,其设计灵感来源于Google的Bigtable论文。它能够处理非常大量的数据...

    Hadoop_HDFS_HBase在centos上部署

    sudo yum install -y java-1.8.0-openjdk-devel ``` 然后,下载Hadoop的tarball文件到你的系统,并解压: ```bash wget https://apache.org/dist/hadoop/common/hadoop-3.1.3/hadoop-3.1.3.tar.gz tar -xvf hadoop...

Global site tag (gtag.js) - Google Analytics