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 5F4F29C6C for ; Tue, 24 Apr 2012 06:06:11 +0000 (UTC) Received: (qmail 99651 invoked by uid 500); 24 Apr 2012 06:06:10 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 99537 invoked by uid 500); 24 Apr 2012 06:06:10 -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 99517 invoked by uid 99); 24 Apr 2012 06:06:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 06:06:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 06:06:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5898740C128 for ; Tue, 24 Apr 2012 06:05:46 +0000 (UTC) Date: Tue, 24 Apr 2012 06:05:46 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <334009491.8222.1335247546442.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <50998021.9172.1334915321029.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5842) Passing shell commands as an argument 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-5842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260267#comment-13260267 ] stack commented on HBASE-5842: ------------------------------ We used to have it so you could pass a formatter class that the shell would use. Default is console formatting. We used to have an html output one which was useful when you could type in shell commands on ui and get results as an html page. Another formatter would emit results per line so greppable. > Passing shell commands as an argument > ------------------------------------- > > Key: HBASE-5842 > URL: https://issues.apache.org/jira/browse/HBASE-5842 > Project: HBase > Issue Type: Improvement > Components: shell > Affects Versions: 0.94.0 > Reporter: Harsh J > Priority: Minor > > Many times we've required scans of .META. to analyze issues with the cluster we work on, and to have the result in a file we can pass around we usually end up doing something like: > {{echo "scan '.META.'| hbase shell > meta-scan.txt}} > This can rather be simplified as something like the following instead, with support for a commands reading argument: > {{hbase shell -c "scan '.META.'"}} > [Note though: File reading is possible already, i.e. {{hbase shell file.hs}}, but then thats two steps and we usually don't keep a file around for just a meta table scan.] -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira