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 13DB310E8E for ; Tue, 11 Feb 2014 00:28:39 +0000 (UTC) Received: (qmail 46026 invoked by uid 500); 11 Feb 2014 00:28:28 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 45858 invoked by uid 500); 11 Feb 2014 00:28:25 -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 45768 invoked by uid 99); 11 Feb 2014 00:28:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2014 00:28:23 +0000 Date: Tue, 11 Feb 2014 00:28:23 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10389) Add namespace help info in table related shell commands 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-10389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897333#comment-13897333 ] Hudson commented on HBASE-10389: -------------------------------- SUCCESS: Integrated in HBase-TRUNK #4905 (See [https://builds.apache.org/job/HBase-TRUNK/4905/]) HBASE-10389 Add namespace help info in table related shell commands (Jerry He) (enis: rev 1566755) * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/alter.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/alter_async.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/alter_status.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/clone_snapshot.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/close_region.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/compact.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/count.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/create.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/delete.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/deleteall.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/describe.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/disable.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/disable_all.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/drop.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/drop_all.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/enable.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/enable_all.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/exists.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/get.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/get_counter.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/get_table.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/grant.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/incr.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/is_disabled.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/is_enabled.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/list.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/major_compact.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/put.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/revoke.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/scan.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/snapshot.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/split.rb * /hbase/trunk/hbase-shell/src/main/ruby/shell/commands/user_permission.rb > Add namespace help info in table related shell commands > ------------------------------------------------------- > > Key: HBASE-10389 > URL: https://issues.apache.org/jira/browse/HBASE-10389 > Project: HBase > Issue Type: Improvement > Components: shell > Affects Versions: 0.96.0, 0.96.1 > Reporter: Jerry He > Assignee: Jerry He > Fix For: 0.96.2, 0.98.1, 0.99.0 > > Attachments: 10389.096.txt, HBASE-10389-trunk.patch > > > Currently in the help info of table related shell command, we don't mention or give namespace as part of the table name. > For example, to create table: > {code} > hbase(main):001:0> help 'create' > Creates a table. Pass a table name, and a set of column family > specifications (at least one), and, optionally, table configuration. > Column specification can be a simple string (name), or a dictionary > (dictionaries are described below in main help output), necessarily > including NAME attribute. > Examples: > hbase> create 't1', {NAME => 'f1', VERSIONS => 5} > hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} > hbase> # The above in shorthand would be the following: > hbase> create 't1', 'f1', 'f2', 'f3' > hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} > hbase> create 't1', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}} > Table configuration options can be put at the end. > Examples: > hbase> create 't1', 'f1', SPLITS => ['10', '20', '30', '40'] > hbase> create 't1', 'f1', SPLITS_FILE => 'splits.txt', OWNER => 'johndoe' > hbase> create 't1', {NAME => 'f1', VERSIONS => 5}, METADATA => { 'mykey' => 'myvalue' } > hbase> # Optionally pre-split the table into NUMREGIONS, using > hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) > hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'} > hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}} > You can also keep around a reference to the created table: > hbase> t1 = create 't1', 'f1' > Which gives you a reference to the table named 't1', on which you can then > call methods. > {code} > We should document the usage of namespace in these commands. > For example: > #namespace=foo and table qualifier=bar > create 'foo:bar', 'fam' > #namespace=default and table qualifier=bar > create 'bar', 'fam' -- This message was sent by Atlassian JIRA (v6.1.5#6160)