USING
clause를 사용해서 HBase로 테이블을 저장할 수 있음importtsv
라는 툴을 쓰면 더 쉽게 할 수 있음users
table을 u.data에서 가져올 예정
hbase shell
list
create 'users', 'userinfo' (users == unique key(first column), userinfo == column family)
exit
wget <http://media.sundog-soft.com/hadoop/hbase.pig>
less hbase.pig
pig hbase.pig
hbase shell
list
scan 'users'
timestamp 사용해서 versioning이 가능함
disable 'users'
drop 'users'
list
exit
ambari에서 hbase 꺼버림