张扬Hbase学习(二)
2017-12-07 本文已影响0人
lehuai
链接数据库
#pwd
/usr/local/hbase/bin
#./hbase shell
>list //查看表
>create 'user ','user_auth','user-info'
>describe 'user' //描述表
>create 'accounts','user_auth','user-info'
>list
>describe 'accounts'
>exists 'accounts'
>enable 'accounts'
>disable 'accounts'
>drop 'accounts'
>list
>create 'accounts','user_auth','user_info'
>put 'accounts','m_123','user_auth:loginName','cangjing'
>put 'accounts','m_123','user_auth:passworkd','123'
>scan 'accounts'
>put 'accounts','m_124','user_auth:loginName','gaoshu'
>put 'accounts','m_125','user_auth:loginName','xiaoze'
>scan 'accounts'
>get 'accounts','m_123'