You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by forbbs forbbs <bb...@gmail.com> on 2008/09/02 08:46:19 UTC
where does the client find the master ip
In the java code, it is initialized this way:
HBaseConfiguration config = new HBaseConfiguration();
Isn't it to check $HBASE_HOME/conf/hbase-site.xml for the master's ip?
The hbase-site.xml writes:
<property>
<name>hbase.master</name>
<value>10.10.113.6:60000</value>
<description>The host and port that the HBase master runs at.
</description>
</property>
But, it displayed errors:
08/09/02 14:02:28 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:60000. Already tried 1 time(s).
08/09/02 14:02:29 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:60000. Already tried 2 time(s).
08/09/02 14:02:30 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:60000. Already tried 3 time(s).
why?
Re: where does the client find the master ip
Posted by "yoav.morag" <yo...@corrigon.com>.
I have been running into the same problem. while J-D's API solution works,
it's probably cleaner to set the classpath. in my case the following setting
fixed it:
-classpath $HBASE_HOME/conf
I could verify, however, that HBASE does NOT execute hbase-env.sh
automatically even if HBASE_HOME is set, so this is probably the mistake we
both made. (the same is true for hadoop)
stack-3 wrote:
>
> What J-D said.
>
> If you are in a mapreduce context, see
> http://wiki.apache.org/hadoop/Hbase/MapReduce.
>
> St.Ack
>
>
> Jean-Daniel Cryans wrote:
>> It seems that your classpath isn't properly configured because it should
>> work. Another way to set it is to do something like this:
>>
>> config.set("hbase.master", "10.10.113.6:60000");
>>
>> This way you're sure it works.
>>
>> J-D
>>
>> On Tue, Sep 2, 2008 at 2:46 AM, forbbs forbbs
>> <bb...@gmail.com>wrote:
>>
>>
>>> In the java code, it is initialized this way:
>>> HBaseConfiguration config = new HBaseConfiguration();
>>>
>>> Isn't it to check $HBASE_HOME/conf/hbase-site.xml for the master's ip?
>>>
>>> The hbase-site.xml writes:
>>> <property>
>>> <name>hbase.master</name>
>>> <value>10.10.113.6:60000</value>
>>> <description>The host and port that the HBase master runs at.
>>> </description>
>>> </property>
>>>
>>> But, it displayed errors:
>>> 08/09/02 14:02:28 INFO ipc.Client: Retrying connect to server:
>>> localhost/
>>> 127.0.0.1:60000. Already tried 1 time(s).
>>> 08/09/02 14:02:29 INFO ipc.Client: Retrying connect to server:
>>> localhost/
>>> 127.0.0.1:60000. Already tried 2 time(s).
>>> 08/09/02 14:02:30 INFO ipc.Client: Retrying connect to server:
>>> localhost/
>>> 127.0.0.1:60000. Already tried 3 time(s).
>>>
>>> why?
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/where-does-the-client-find-the-master-ip-tp19264978p19285133.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: where does the client find the master ip
Posted by stack <st...@duboce.net>.
What J-D said.
If you are in a mapreduce context, see
http://wiki.apache.org/hadoop/Hbase/MapReduce.
St.Ack
Jean-Daniel Cryans wrote:
> It seems that your classpath isn't properly configured because it should
> work. Another way to set it is to do something like this:
>
> config.set("hbase.master", "10.10.113.6:60000");
>
> This way you're sure it works.
>
> J-D
>
> On Tue, Sep 2, 2008 at 2:46 AM, forbbs forbbs <bb...@gmail.com>wrote:
>
>
>> In the java code, it is initialized this way:
>> HBaseConfiguration config = new HBaseConfiguration();
>>
>> Isn't it to check $HBASE_HOME/conf/hbase-site.xml for the master's ip?
>>
>> The hbase-site.xml writes:
>> <property>
>> <name>hbase.master</name>
>> <value>10.10.113.6:60000</value>
>> <description>The host and port that the HBase master runs at.
>> </description>
>> </property>
>>
>> But, it displayed errors:
>> 08/09/02 14:02:28 INFO ipc.Client: Retrying connect to server: localhost/
>> 127.0.0.1:60000. Already tried 1 time(s).
>> 08/09/02 14:02:29 INFO ipc.Client: Retrying connect to server: localhost/
>> 127.0.0.1:60000. Already tried 2 time(s).
>> 08/09/02 14:02:30 INFO ipc.Client: Retrying connect to server: localhost/
>> 127.0.0.1:60000. Already tried 3 time(s).
>>
>> why?
>>
>>
>
>
Re: where does the client find the master ip
Posted by Jean-Daniel Cryans <jd...@apache.org>.
It seems that your classpath isn't properly configured because it should
work. Another way to set it is to do something like this:
config.set("hbase.master", "10.10.113.6:60000");
This way you're sure it works.
J-D
On Tue, Sep 2, 2008 at 2:46 AM, forbbs forbbs <bb...@gmail.com>wrote:
> In the java code, it is initialized this way:
> HBaseConfiguration config = new HBaseConfiguration();
>
> Isn't it to check $HBASE_HOME/conf/hbase-site.xml for the master's ip?
>
> The hbase-site.xml writes:
> <property>
> <name>hbase.master</name>
> <value>10.10.113.6:60000</value>
> <description>The host and port that the HBase master runs at.
> </description>
> </property>
>
> But, it displayed errors:
> 08/09/02 14:02:28 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:60000. Already tried 1 time(s).
> 08/09/02 14:02:29 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:60000. Already tried 2 time(s).
> 08/09/02 14:02:30 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:60000. Already tried 3 time(s).
>
> why?
>