• windows HBase 安装


    本文转载自 https://www.cnblogs.com/davidwang456/p/9026519.html

    下载目前最新版本

    http://mirrors.hust.edu.cn/apache/hbase/stable/

    最新版本

    hbase-1.2.6

    1. 解压到D:softwarehbase-1.2.6

    进入conf目录

    配置hbase-site.xml文件

    复制代码
    <configuration>  
        <property>  
            <name>hbase.rootdir</name>  
            <value>file:///D:/software/hbase-1.2.6/data</value>  
        </property>  
        <property>  
            <name>hbase.tmp.dir</name>  
            <value>D:/software/hbase-1.2.6/data/tmp</value>  
        </property>  
        <property>  
            <name>hbase.zookeeper.quorum</name>  
            <value>127.0.0.1</value>  
        </property>  
        <property>  
            <name>hbase.zookeeper.property.dataDir</name>  
            <value>D:/software/hbase-1.2.6/data/zoo</value>  
        </property>  
        <property>  
            <name>hbase.cluster.distributed</name>  
            <value>false</value>  
        </property>  
    </configuration> 
    复制代码

    进入到bin目录

    运行:

     start-hbase.cmd

    2.测试

    执行 bin>hbase shell

    复制代码
    hbase(main):001:0> create 'mytable', 'data'
    0 row(s) in 1.1420 seconds
    
    => Hbase::Table - mytable
    hbase(main):002:0> put 'mytable', 'row1', 'data:1', 'value1'
    0 row(s) in 0.0580 seconds
    
    hbase(main):003:0> put 'mytable', 'row2', 'data:2', 'value2'
    0 row(s) in 0.0090 seconds
    
    hbase(main):004:0> put 'mytable', 'row3', 'data:3', 'value3'
    0 row(s) in 0.0080 seconds
    
    hbase(main):005:0> list
    TABLE
    
    mytable
    
    1 row(s) in 0.0200 seconds
    
    => ["mytable"]
    hbase(main):006:0> scan 'mytable'
    ROW                   COLUMN+CELL
    
    row1                 column=data:1, timestamp=1416554699558, value=value1
    
    row2                 column=data:2, timestamp=1416554715456, value=value2
    
    row3                 column=data:3, timestamp=1416554730255, value=value3
    
    3 row(s) in 0.0520 seconds
    复制代码
  • 相关阅读:
    LoadRunner调用java函数测试oracle
    pam_cracklib.so模块
    crontab定时任务安装、使用方法
    yum的repo文件详解、以及epel简介、yum源的更换
    ubuntu添加开机自启和sysv-rc-conf
    MySQL配置参数详解
    集群管理软件clustershell
    Mysql命令大全
    Nginx配置文件nginx.conf 详解
    linux下iptables配置详解
  • 原文地址:https://www.cnblogs.com/zgzf/p/10820265.html
Copyright © 2020-2023  润新知