import org.apache.commons.lang3.StringUtils;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.util.Bytes;
import java.io.IOException;
public class CreateHbaseTableInit {
public static void main(String[] args) throws Exception {
Connection hbaseConn = HbaseTools.getHbaseConn();
CreateHbaseTableInit createHbaseTableInit = new CreateHbaseTableInit();
/**
* syn.table.order_info="order_info"
* syn.table.renter_info="renter_info"
* syn.table.driver_info="driver_info"
* syn.table.opt_alliance_business="opt_alliance_business"
*/
String[] tableNames = new String[]{"order_info","renter_info","driver_info",&#
Hbase表预分区代码实现
最新推荐文章于 2021-06-10 11:09:32 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)