链接数据库
#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'
eclipse
新建project,输入名称,新建一个package,输入名字,新建一个类
网友评论