v1.0
可编辑可修改
1
1
创建表
package step1;
import * HBase version of ExampleClient that uses {@code
Connection},
* {@code Admin} and {@code Table}.
*/
public class Task{
public void createTable()throws Exception{
/********* Begin *********/
Configuration config = ();
Connection connection = (config);
try {
uild();uild();uild();//
构建列族对象
(family); //
设置列族
()); //
创建表
//
添加数据
byte[] row1 = ("row1");
Put put1 = new Put(row1);
byte[] columnFamily1 = ("data"); //
列
byte[] qualifier1 = (1)); //
列族修饰词