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'

待补充。。。

你可能感兴趣的:(Spark on hbase)