Spark on hbase

在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'

待补充。。。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容