You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2015/04/11 02:15:12 UTC

[jira] [Updated] (HBASE-5245) HBase shell should use alternate jruby if JRUBY_HOME is set, should pass along JRUBY_OPTS

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

Andrew Purtell updated HBASE-5245:
----------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed ages ago

> HBase shell should use alternate jruby if JRUBY_HOME is set, should pass along JRUBY_OPTS
> -----------------------------------------------------------------------------------------
>
>                 Key: HBASE-5245
>                 URL: https://issues.apache.org/jira/browse/HBASE-5245
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>    Affects Versions: 0.90.4
>            Reporter: Philip (flip) Kromer
>            Priority: Minor
>         Attachments: 5245-v2.txt, hbase-jruby_home-and-jruby_opts.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Invoking {{hbase shell}}, the hbase runner launches the jruby jar directly, and so behaves differently than the traditional jruby runner. Specifically, it
> * does not respect the {{JRUBY_OPTS}} environment variable (among other things, I cannot launch the shell to use ruby-1.9 mode)
> * does not respect the {{JRUBY_HOME}} environment variable (placing things in an inconsistent state if my classpath holds the system jruby).
> This patch allows you to use an alternative jruby and to specify options to the jruby jar.
> * When the command is 'shell', adds {{$JRUBY_OPTS}} to the CLASS
> * When the command is 'shell' and {{$JRUBY_HOME}} is set, adds {{"$JRUBY_HOME/lib/jruby.jar"}} to the classpath, and sets {{-Djruby.home}} and {{-Djruby.job}} config variables.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)