[jira] [Commented] (HBASE-11431) Add support of running from command line for 'hbase shell'
[ https://issues.apache.org/jira/browse/HBASE-11431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292154#comment-14292154 ] Yi Deng commented on HBASE-11431: - [~amitkabraiiit] I'm ok with close this Jira now. > Add support of running from command line for 'hbase shell' > -- > > Key: HBASE-11431 > URL: https://issues.apache.org/jira/browse/HBASE-11431 > Project: HBase > Issue Type: New Feature > Components: Admin >Affects Versions: 0.89-fb >Reporter: @deprecated Yi Deng >Priority: Minor > Labels: shell > Fix For: 0.89-fb > > > Add support of running from command line for 'hbase shell'. > Now you can execute shell command from the bash like this: > bin/hbase shell --exec='scan ".META"' > The result can be piped to grep or other command. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-11431) Add support of running from command line for 'hbase shell'
[ https://issues.apache.org/jira/browse/HBASE-11431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291537#comment-14291537 ] Amit Kabra commented on HBASE-11431: Since : echo "put 't1_dn15','row5','cf1:q1','row5_from15'" | hbase shell solves the purpose, is there still any work left on this jira ? > Add support of running from command line for 'hbase shell' > -- > > Key: HBASE-11431 > URL: https://issues.apache.org/jira/browse/HBASE-11431 > Project: HBase > Issue Type: New Feature > Components: Admin >Affects Versions: 0.89-fb >Reporter: @deprecated Yi Deng >Priority: Minor > Labels: shell > Fix For: 0.89-fb > > > Add support of running from command line for 'hbase shell'. > Now you can execute shell command from the bash like this: > bin/hbase shell --exec='scan ".META"' > The result can be piped to grep or other command. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-11431) Add support of running from command line for 'hbase shell'
[ https://issues.apache.org/jira/browse/HBASE-11431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14104103#comment-14104103 ] Sean Busbey commented on HBASE-11431: - Does the 0.89-fb branch properly exit with non-zero status if something goes wrong with a command? If not, should this ticket be repurposed for backporting HBASE-11658 to 0.89-fb? > Add support of running from command line for 'hbase shell' > -- > > Key: HBASE-11431 > URL: https://issues.apache.org/jira/browse/HBASE-11431 > Project: HBase > Issue Type: New Feature > Components: Admin >Affects Versions: 0.89-fb >Reporter: Yi Deng >Priority: Minor > Labels: shell > Fix For: 0.89-fb > > > Add support of running from command line for 'hbase shell'. > Now you can execute shell command from the bash like this: > bin/hbase shell --exec='scan ".META"' > The result can be piped to grep or other command. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HBASE-11431) Add support of running from command line for 'hbase shell'
[ https://issues.apache.org/jira/browse/HBASE-11431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046553#comment-14046553 ] Yi Deng commented on HBASE-11431: - Thanks for the comment. The method you provide is not convinient for creating a file each time. But somebody else just tell me I can do things like: echo "put 't1_dn15','row5','cf1:q1','row5_from15'" | hbase shell This is simple enough. > Add support of running from command line for 'hbase shell' > -- > > Key: HBASE-11431 > URL: https://issues.apache.org/jira/browse/HBASE-11431 > Project: HBase > Issue Type: New Feature > Components: Admin >Affects Versions: 0.89-fb >Reporter: Yi Deng >Priority: Minor > Labels: shell > Fix For: 0.89-fb > > > Add support of running from command line for 'hbase shell'. > Now you can execute shell command from the bash like this: > bin/hbase shell --exec='scan ".META"' > The result can be piped to grep or other command. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (HBASE-11431) Add support of running from command line for 'hbase shell'
[ https://issues.apache.org/jira/browse/HBASE-11431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046547#comment-14046547 ] Demai Ni commented on HBASE-11431: -- currently. I usually did this to ge the same functionality. 1) put the hbase shell commands in to a txt file. For example, I put this line put 't1_dn15','row5','cf1:q1','row5_from15' into file cmd.txt 2) then run this $hbase shell < cmd.txt It will work well like this {code} $ hbase shell < cmd.txt HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 0.99.0-SNAPSHOT, redfe6592dfcab57f6f2a78f73d4fc788e62707e9, Fri Jun 27 15:36:44 PDT 2014 put 't1_dn15','row5','cf1:q1','row5_from15' 0 row(s) in 0.4750 seconds {code} And user can certainly put more than one command in the text file. So will that serve the requirement of this jira? > Add support of running from command line for 'hbase shell' > -- > > Key: HBASE-11431 > URL: https://issues.apache.org/jira/browse/HBASE-11431 > Project: HBase > Issue Type: New Feature > Components: Admin >Affects Versions: 0.89-fb >Reporter: Yi Deng >Priority: Minor > Labels: shell > Fix For: 0.89-fb > > > Add support of running from command line for 'hbase shell'. > Now you can execute shell command from the bash like this: > bin/hbase shell --exec='scan ".META"' > The result can be piped to grep or other command. -- This message was sent by Atlassian JIRA (v6.2#6252)