[
https://issues.apache.org/jira/browse/HBASE-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-1640.
--------------------------
Resolution: Fixed
Assignee: stack
Committed small change
> Allow passing arguments to jruby script run when run by bin/hbase shell
> -----------------------------------------------------------------------
>
> Key: HBASE-1640
> URL: https://issues.apache.org/jira/browse/HBASE-1640
> Project: Hadoop HBase
> Issue Type: Bug
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> If we pass a ruby script, can't give it args; they are eaten by the bin/hbase
> shell start up wrapper. Fix is simple:
> {code}
> Index: bin/hirb.rb
> ===================================================================
> --- bin/hirb.rb (revision 792789)
> +++ bin/hirb.rb (working copy)
> @@ -63,6 +63,8 @@
> # after we've set up some environment.
> script2run = arg
> found.push(arg)
> + # Presume that any other args are meant for the script.
> + break
> end
> end
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.