1.

source /etc/profile

2.

3.

start-all.sh

zkServer.sh start

start-hbase.sh  

进入终端界面

hbase shell

create 'stu',{NAME=>'info'},{NAME=>'desc'},SPLITS => ['1000','2000','3000','4000','5000']

put 'stu','15653216541','info:num','14561235651'

put 'stu','15653216541','info:s_name','cg'

put 'stu','15653216541','desc:sex','m'

put 'stu','15653216541','desc:score','95'

put 'stu','45136542181','info:num','18124563145'

put 'stu','45136542181','info:s_name','cx'

put 'stu','45136542181','desc:sex','w'

put 'stu','45136542181','desc:score','78'

put 'stu','36465216181','info:num','18161256463'

put 'stu','36465216181','info:s_name','hm'

put 'stu','36465216181','desc:sex','w'

put 'stu','36465216181','desc:score','99'

put 'stu','58151818461','info:num','16481815185'

put 'stu','58151818461','info:s_name','lw'

put 'stu','58151818461','desc:sex','m'

put 'stu','58151818461','desc:score','65'

put 'stu','27651608131','info:num','13180615672'

put 'stu','27651608131','info:s_name','gj'

put 'stu','27651608131','desc:sex','m'

put 'stu','27651608131','desc:score','77'

参考链接

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。