[ 
https://issues.apache.org/jira/browse/HBASE-5842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J resolved HBASE-5842.
----------------------------

    Resolution: Later

[~busbey] - It partially improves the first form, but I still feel a {{-c}} 
option may be preferable, no?

That said I've not seen need for scanning meta lately (HBase has improved a 
lot!) so I'll resolve this one as 'Later' as there's no demand on this.

I cannot also think of many other reasons one would need to be piping to the 
current shell instead of using the file option (if at all).

> 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 was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to