码迷,mamicode.com
首页 > Windows程序 > 详细

hbase windows安装

时间:2018-05-11 23:49:27      阅读:302      评论:0      收藏:0      [点我收藏+]

标签:0.00   list   安装   nbsp   val   bsp   最新版   apach   timestamp   

下载目前最新版本

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

最新版本

hbase-1.2.6

1. 解压到D:\software\hbase-1.2.6

进入到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

 

hbase windows安装

标签:0.00   list   安装   nbsp   val   bsp   最新版   apach   timestamp   

原文地址:https://www.cnblogs.com/davidwang456/p/9026519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!