hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HBASE-1640) Allow passing arguments to jruby script run when run by bin/hbase shell
Date Fri, 10 Jul 2009 04:22:14 GMT

     [ 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.


Mime
View raw message