You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2009/07/10 06:20:15 UTC
[jira] Created: (HBASE-1640) Allow passing arguments to jruby
script run when run by bin/hbase shell
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
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.
[jira] Resolved: (HBASE-1640) Allow passing arguments to jruby
script run when run by bin/hbase shell
Posted by "stack (JIRA)" <ji...@apache.org>.
[ 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.