BIGDATA/ํ๋ก์์ฝ์์คํ
[Hbase] ์ํ์น Hbase ๋ช ๋ น์ด ์ ๋ฆฌ
๐ฐํํ
2021. 5. 2. 22:26
๋ฐ์ํ
NoSQL ๊ธฐ๋ฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ด๋ค.
ํ๋ก์ ๋ฐ์ดํฐ๋ฅผ NoSQL (Key, value) ์์ผ๋ก ์ ์ฅํจ
$ /hadoop/sbin/start-all.sh
$ ./start-hbase.sh
$ ./hbase shell
### hbase test ###
create 'test', 'cf'
list 'test'
describe 'test'
put 'test', 'row1', 'cf:a', 'value1'
put 'test', 'row2', 'cf:b', 'value2'
put 'test', 'row3', 'cf:c', 'value3'
scan 'test'
------------------------
ROW COLUMN+CELL
row1 column=cf:a, timestamp=1612833812641, value=value1
row2 column=cf:b, timestamp=1612833817184, value=value2
row3 column=cf:c, timestamp=1612833818011, value=value3
3 row(s)
Took 0.8014 seconds
whoami
grant 'username','RWXCA'
728x90
๋ฐ์ํ