Spark on hbase

作者: SevenLiu | 来源:发表于2017-04-06 16:47 被阅读0次

    在hbase创建测试表,并初始化数据

    hbase> create 'student_test','info'
    hbase> put 'student_test','1','info:age','20'
    hbase> put 'student_test','1','info:gender','m'
    hbase> put 'student_test','1','info:name','xiaoqiang'
    hbase> put 'student_test','2','info:age','22'
    hbase> put 'student_test','2','info:gender','m'
    hbase> put 'student_test','2','info:name','xiaoming'
    hbase> put 'student_test','3','info:age','23'
    hbase> put 'student_test','3','info:gender','f'
    hbase> put 'student_test','3','info:name','xiaoxin'
    hbase> scan 'student_test'
    

    待补充。。。

    相关文章

      网友评论

        本文标题:Spark on hbase

        本文链接:https://www.haomeiwen.com/subject/swdqattx.html