Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.0.0
-
None
-
None
Description
HBase has a utility to create and pre-split a table.
hbase org.apache.hadoop.hbase.util.RegionSplitter table_name HexStringSplit -c 30 -f cf
The other algorithm choice is UniformSplit. User can also implement a custom algorithm. It would be great to be able to pass an option to create a table, perhaps in the prepare() method as well as pre-split the table based on the passed algorithm.
Something like this "hbaseMapper().withCreateTable(numRegions, columnFamily, algorithm) where algorithm is UniformSplit, HexStringSplit and/or a custom algorithm implementation