You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Claudiu Olteanu <ol...@ymail.com> on 2012/07/12 23:29:05 UTC

Implement a shell in the Master UI

Hello!


My name in Claudiu Olteanu and I want to implement a shell in the Master UI. The problem is that
I  don't know how to capture the output of the IRB's commands. I tried to create a new ruby class 

which runs the commands and save the stdout but it can't call any IRB's methods. 

I've never used ruby before, so please give me some tips!

You can find a sample of my code here [1].

Best regards,
Claudiu


[1] - http://stackoverflow.com/questions/11457960/rubynomethoderror-call-a-ruby-method-from-java

Re: Implement a shell in the Master UI

Posted by Jean-Daniel Cryans <jd...@apache.org>.
Hi Claudiu,

Our IRB shell is hackish enough that trying to use it from the web UI
make it sounds like a project that's doomed from the beginning (but I
say this from my limited experience with IRB, JRuby and calling JRuby
from Java).

On the other hand, it sounds like it could be useful...

J-D

On Thu, Jul 12, 2012 at 2:29 PM, Claudiu Olteanu
<ol...@ymail.com> wrote:
> Hello!
>
>
> My name in Claudiu Olteanu and I want to implement a shell in the Master UI. The problem is that
> I  don't know how to capture the output of the IRB's commands. I tried to create a new ruby class
>
> which runs the commands and save the stdout but it can't call any IRB's methods.
>
> I've never used ruby before, so please give me some tips!
>
> You can find a sample of my code here [1].
>
> Best regards,
> Claudiu
>
>
> [1] - http://stackoverflow.com/questions/11457960/rubynomethoderror-call-a-ruby-method-from-java