/[Apache-SVN]
ViewVC logotype

Revision 1203413


Jump to revision: Previous Next
Author: kannan
Date: Thu Nov 17 23:01:59 2011 UTC (12 years, 11 months ago)
Changed paths: 4
Log Message:
HBASE-4628 [jira] Enhance Table Create Presplit Functionality within the HBase
Shell

Summary:
HBase shell can algorithmically split a new table at creation

This change adds optional arguments to the HBase shell's create command
to split a table into a specified number of regions using a specified
splitting algorithm as defined by RegionSplitter.

Currently, we allow the user to presplit in the HBase shell by explicitly
listing the startkey of all the region shards that they want.  Instead, we
should provide the RegionSplitter functionality of choosing a split algorithm,
followed by the number of splits that they want.

Test Plan:
Created tables with and without splits using the shell; also attampted
to give incorrect arguments to shell create command.

Reviewers: nspiegelberg, JIRA

Reviewed By: nspiegelberg

CC: nspiegelberg, lhofhansl

Differential Revision: 429

Changed paths

Path Details
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java modified , text changed
Directoryhbase/trunk/src/main/ruby/hbase/admin.rb modified , text changed
Directoryhbase/trunk/src/main/ruby/hbase.rb modified , text changed
Directoryhbase/trunk/src/main/ruby/shell/commands/create.rb modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26