You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Stephen Boesch <ja...@gmail.com> on 2013/06/24 07:33:20 UTC
How to specify the hbase.zookeeper.quorum on command line invoking
hbase shell
We want to connect to a non-default / remote hbase server by setting
hbase.zookeeper.quorum=our.remote.hbase.server
on the command line invocation of "hbase shell" (and not disturbing the
existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
Re: How to specify the hbase.zookeeper.quorum on command line
invoking hbase shell
Posted by Shahab Yunus <sh...@gmail.com>.
Have you tried creating your own small script in which you set the relevant
environment variables per session (using 'export' for example)?
On Mon, Jun 24, 2013 at 1:33 AM, Stephen Boesch <ja...@gmail.com> wrote:
> We want to connect to a non-default / remote hbase server by setting
> hbase.zookeeper.quorum=our.remote.hbase.server
> on the command line invocation of "hbase shell" (and not disturbing the
> existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
>
RE: How to specify the hbase.zookeeper.quorum on command line
invoking hbase shell
Posted by rob mancuso <rc...@gmail.com>.
If you have the separate conf files in their own directories , You can run
a script to set HBASE_CONF_DIR and HADOOP_CONF_DIR. Then just run hbase
shell
On Jun 24, 2013 10:21 AM, "rajeshbabu chintaguntla" <
rajeshbabu.chintaguntla@huawei.com> wrote:
>
> --config <conf dir> arguments of a command will be parsed by
> hbase-config.sh which is imported in hbase script.
> It will work.
> {code}
> . "$bin"/hbase-config.sh
> {code}
>
>
> Thanks,
> Rajeshbabu
> ________________________________________
> From: Shahab Yunus [shahab.yunus@gmail.com]
> Sent: Monday, June 24, 2013 7:41 PM
> To: user@hbase.apache.org
> Subject: Re: How to specify the hbase.zookeeper.quorum on command line
> invoking hbase shell
>
> 'hbase' does not seem to have --config/-config parameter.
>
> Regards,
> Shahab
>
>
> On Mon, Jun 24, 2013 at 8:39 AM, rajeshbabu chintaguntla <
> rajeshbabu.chintaguntla@huawei.com> wrote:
>
> > Can you try copying hbase-site.xml to other folder and change
> > hbase.zookeeper.quorum to remote server and then use below command.
> >
> > ./hbase --config <other folder> shell
> >
> > Then shell will start with the configurations in hbase-site.xml of new
> > folder. I didnt try this, but it should help you.
> >
> >
> > Thanks,
> > Rajeshbabu.
> >
> > ________________________________________
> > From: Stephen Boesch [javadba@gmail.com]
> > Sent: Monday, June 24, 2013 11:03 AM
> > To: user
> > Subject: How to specify the hbase.zookeeper.quorum on command line
> > invoking hbase shell
> >
> > We want to connect to a non-default / remote hbase server by setting
> > hbase.zookeeper.quorum=our.remote.hbase.server
> > on the command line invocation of "hbase shell" (and not disturbing the
> > existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
> >
RE: How to specify the hbase.zookeeper.quorum on command line
invoking hbase shell
Posted by rajeshbabu chintaguntla <ra...@huawei.com>.
--config <conf dir> arguments of a command will be parsed by hbase-config.sh which is imported in hbase script.
It will work.
{code}
. "$bin"/hbase-config.sh
{code}
Thanks,
Rajeshbabu
________________________________________
From: Shahab Yunus [shahab.yunus@gmail.com]
Sent: Monday, June 24, 2013 7:41 PM
To: user@hbase.apache.org
Subject: Re: How to specify the hbase.zookeeper.quorum on command line invoking hbase shell
'hbase' does not seem to have --config/-config parameter.
Regards,
Shahab
On Mon, Jun 24, 2013 at 8:39 AM, rajeshbabu chintaguntla <
rajeshbabu.chintaguntla@huawei.com> wrote:
> Can you try copying hbase-site.xml to other folder and change
> hbase.zookeeper.quorum to remote server and then use below command.
>
> ./hbase --config <other folder> shell
>
> Then shell will start with the configurations in hbase-site.xml of new
> folder. I didnt try this, but it should help you.
>
>
> Thanks,
> Rajeshbabu.
>
> ________________________________________
> From: Stephen Boesch [javadba@gmail.com]
> Sent: Monday, June 24, 2013 11:03 AM
> To: user
> Subject: How to specify the hbase.zookeeper.quorum on command line
> invoking hbase shell
>
> We want to connect to a non-default / remote hbase server by setting
> hbase.zookeeper.quorum=our.remote.hbase.server
> on the command line invocation of "hbase shell" (and not disturbing the
> existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
>
Re: How to specify the hbase.zookeeper.quorum on command line
invoking hbase shell
Posted by Shahab Yunus <sh...@gmail.com>.
'hbase' does not seem to have --config/-config parameter.
Regards,
Shahab
On Mon, Jun 24, 2013 at 8:39 AM, rajeshbabu chintaguntla <
rajeshbabu.chintaguntla@huawei.com> wrote:
> Can you try copying hbase-site.xml to other folder and change
> hbase.zookeeper.quorum to remote server and then use below command.
>
> ./hbase --config <other folder> shell
>
> Then shell will start with the configurations in hbase-site.xml of new
> folder. I didnt try this, but it should help you.
>
>
> Thanks,
> Rajeshbabu.
>
> ________________________________________
> From: Stephen Boesch [javadba@gmail.com]
> Sent: Monday, June 24, 2013 11:03 AM
> To: user
> Subject: How to specify the hbase.zookeeper.quorum on command line
> invoking hbase shell
>
> We want to connect to a non-default / remote hbase server by setting
> hbase.zookeeper.quorum=our.remote.hbase.server
> on the command line invocation of "hbase shell" (and not disturbing the
> existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
>
RE: How to specify the hbase.zookeeper.quorum on command line
invoking hbase shell
Posted by rajeshbabu chintaguntla <ra...@huawei.com>.
Can you try copying hbase-site.xml to other folder and change hbase.zookeeper.quorum to remote server and then use below command.
./hbase --config <other folder> shell
Then shell will start with the configurations in hbase-site.xml of new folder. I didnt try this, but it should help you.
Thanks,
Rajeshbabu.
________________________________________
From: Stephen Boesch [javadba@gmail.com]
Sent: Monday, June 24, 2013 11:03 AM
To: user
Subject: How to specify the hbase.zookeeper.quorum on command line invoking hbase shell
We want to connect to a non-default / remote hbase server by setting
hbase.zookeeper.quorum=our.remote.hbase.server
on the command line invocation of "hbase shell" (and not disturbing the
existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
Re: How to specify the hbase.zookeeper.quorum on command line
invoking hbase shell
Posted by Stack <st...@duboce.net>.
On Sun, Jun 23, 2013 at 10:33 PM, Stephen Boesch <ja...@gmail.com> wrote:
> We want to connect to a non-default / remote hbase server by setting
> hbase.zookeeper.quorum=our.remote.hbase.server
> on the command line invocation of "hbase shell" (and not disturbing the
> existing hbase-env.sh or hbase-site.xml). How to do this? Thanks!
>
I think it is broke that you can't do this. You should be able to do
something like:
./bin/hbase shell -Dhbase.zookeeper.quorum="xyz"
or even...
HBASE_OPTS="-Dhbase.zookeeper.quorum='xyz'" ./bin/hbase shell
or even...
RUBY_OPTS="-J-Dhbase.zookeeper.quorum='xyz'" ./bin/hbase shell
I thought at least the latter would work but it fails.
This is a failing that should be simple enough to fix. Want to file a noob
issue for it?
W/o it you have to do stuff like the trick Rob Mancusco suggests:
HBASE_CONF_DIR=/alternate/conf/dir ./bin/hbase shell
St.Ack