当前位置:   article > 正文

头歌 HBase 性能优化:优化拆分和合并_第1关:hbase 优化拆分和合并

第1关:hbase 优化拆分和合并

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'

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/486075
推荐阅读
相关标签
  

闽ICP备14008679号