Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4CC610B4A for ; Tue, 3 Mar 2015 10:06:39 +0000 (UTC) Received: (qmail 81528 invoked by uid 500); 3 Mar 2015 10:06:05 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 81483 invoked by uid 500); 3 Mar 2015 10:06:05 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 81471 invoked by uid 99); 3 Mar 2015 10:06:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 10:06:05 +0000 Date: Tue, 3 Mar 2015 10:06:05 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13100) Shell command to retrieve table splits MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14344855#comment-14344855 ] Hudson commented on HBASE-13100: -------------------------------- SUCCESS: Integrated in HBase-0.98 #880 (See [https://builds.apache.org/job/HBase-0.98/880/]) HBASE-13100 Shell command to retrieve table splits (busbey: rev 5e993eeefdf96579e7aed8d03d215e7df2e52d0d) * hbase-shell/src/test/ruby/hbase/table_test.rb * hbase-shell/src/main/ruby/hbase/table.rb * hbase-shell/src/main/ruby/shell.rb * hbase-shell/src/main/ruby/shell/commands/get_splits.rb * hbase-shell/src/test/ruby/test_helper.rb > Shell command to retrieve table splits > -------------------------------------- > > Key: HBASE-13100 > URL: https://issues.apache.org/jira/browse/HBASE-13100 > Project: HBase > Issue Type: Improvement > Components: shell > Reporter: Sean Busbey > Assignee: Ashish Singhi > Priority: Minor > Labels: beginner > Fix For: 2.0.0, 1.1.0, 0.98.12 > > Attachments: HBASE-13100-0.98.2.patch, HBASE-13100-0.98.patch, HBASE-13100-v1.patch, HBASE-13100-v2.patch, HBASE-13100-v3.patch, HBASE-13100-v4.patch.patch, HBASE-13100.patch > > > Add a shell command that returns the splits for a table. > Doing this yourself is currently possible, but involves going outside of the public api. > {code} > jruby-1.7.3 :012 > create 'example_table', 'f1', SPLITS => ["10", "20", "30", "40"] > 0 row(s) in 0.5500 seconds > => Hbase::Table - example_table > jruby-1.7.3 :013 > get_table('example_table').table.get_all_region_locations.map do |location| org.apache.hadoop.hbase.util.Bytes::toStringBinary(location.get_region_info.get_start_key) end > 0 row(s) in 0.0130 seconds > => ["", "10", "20", "30", "40"] > jruby-1.7.3 :014 > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)