hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: calling hbase shell from bash
Date Tue, 26 Oct 2010 04:43:49 GMT
On Mon, Oct 25, 2010 at 3:00 PM, Ted Yu <yuzhihong@gmail.com> wrote:
> Hi,
> I use the following in bash:
> echo "get '$table', 'row'" | bin/hbase shell
> The above is in a loop. Is there a way to expedite execution by not spawning
> hbase shell each time ?

You'd have to daemonize the shell and then send it commands.  Its
probably possible but I've not tried it.  Use REST server instead?

> Also, how do I set timeout for the above command so that I can have control
> over the amount of time my bash script uses ?

There are some suggestions here:



View raw message