You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by King JKing <be...@gmail.com> on 2010/12/23 07:57:23 UTC
HBase Client connect to remote HBase
Dear all,
I set up my HBase server in standalone mode.
Can HBase Client (from another machine) connect to this HBase server?
How can I do that?
A lot of people have the same question. But I did not find correct answer.
Thank a lot for support.
Re: HBase Client connect to remote HBase
Posted by Pete Haidinyak <ja...@cox.net>.
Hi,
Here is the code I use to connect to a remote HBase. You'll note most of
the connection information is in the m_configuration.set methods.
/**
* Method setupHBaseConnection
*
* If production has a problem connecting make sure the
* hbase-0.89.20100924+28-tests.jar is not in the Classpath.
*
* @throws IOException when there is a connection problem to the HBase
Cluster.
*/
private void setupHBaseConnection()
throws IOException
{
m_configuration = HBaseConfiguration.create();
m_configuration.clear();
// - Get the configuration properties from the Command line -D parameters.
m_configuration.set("hbase.zookeeper.quorum",
System.getProperty("hbase.zookeeper.quorum",
"caiss01a,caiss01b"));
m_configuration.set("hbase.zookeeper.property.clientPort",
System.getProperty("hbase.zookeeper.property.clientPort",
"2222"));
m_trafficTable = new HTable(m_configuration, TRAFFIC_LOG_TABLE_NAME);
m_logger.info("Connection successful.");
} // - End setupHBaseConnection Method.
On Wed, 22 Dec 2010 22:57:23 -0800, King JKing <be...@gmail.com> wrote:
> Dear all,
>
> I set up my HBase server in standalone mode.
>
> Can HBase Client (from another machine) connect to this HBase server?
> How can I do that?
>
> A lot of people have the same question. But I did not find correct
> answer.
>
> Thank a lot for support.
Re: HBase Client connect to remote HBase
Posted by Eric <er...@gmail.com>.
I see you have ipv6 hosts defined in there too. For HBase, you should
disable ipv6 if possible to prevent performance problems.
2010/12/23 King JKing <be...@gmail.com>
> Thank everybody,
>
> I can connect to remote HBase by HBase Client :)
>
> I just comment line
> 127.0.0.1 mypc
> on hosts and add line
> 10.199.25.23 mypc
>
> More
> http://db.tmtec.biz/blogs/index.phAfterreadp/get-hadoop-up-and-running-without-dns
> ,
>
> *master *
>
> ::1 localhost6.localdomain6 localhost6
> 192.168.10.21 master ** master has to have accessible IP address(not ::1
> nor
> 127.0.0.1) by slaves*
> 192.168.10.22 slave.yellow
> 192.168.10.23 slave.red
>
> *slave.yellow*
>
> 127.0.0.1 slave.yellow localhost.localdomain localhost
> ::1 localhost6.localdomain6 localhost6
> 192.168.10.21 master
> 192.168.10.23 slave.red
>
> *slave.red*
>
> 127.0.0.1 slave.red localhost.localdomain localhost
> ::1 localhost6.localdomain6 localhost6
> 192.168.10.21 master
> 192.168.10.22 slave.yellow
>
>
>
>
>
> On Thu, Dec 23, 2010 at 6:17 PM, King JKing <be...@gmail.com> wrote:
>
> > I've deleted this file. But error still :(
> > Here is my zk_dump value
> >
> > HBase tree in ZooKeeper is rooted at /hbase
> > Cluster up? true
> > Master address: 127.0.0.1:60000
> >
> > Region server holding ROOT: 127.0.0.1:50752
> > Region servers:
> > - 127.0.0.1:50752
> >
> > Quorum Server Statistics:
> > - 10.30.12.182:2181
> >
> > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
> > Clients:
> > /10.30.12.182:47695[1](queued=0,recved=322,sent=322)
> > /10.30.12.182:47694[1](queued=0,recved=337,sent=337)
> >
> > /127.0.0.1:17649[1](queued=0,recved=275,sent=275)
> > /10.30.12.182:30085[0](queued=0,recved=1,sent=0)
> > /127.0.0.1:63031[1](queued=0,recved=321,sent=321)
> > /10.30.12.182:47698[1](queued=0,recved=338,sent=338)
> >
> >
> > Latency min/avg/max: 0/0/22
> > Received: 1652
> > Sent: 1651
> > Outstanding: 0
> > Zxid: 0x16
> >
> > Mode: standalone
> > Node count: 10
> >
> > And here is hbase client log
> > 10/12/23 18:10:50 INFO ipc.HbaseRPC: Server at /127.0.0.1:50752 could
> not
> > be reached after 1 tries, giving up.
> > 10/12/23 18:10:51 INFO ipc.HbaseRPC: Server at /127.0.0.1:50752 could
> not
> > be reached after 1 tries, giving up.
> >
> > How can I change Master Address to IP address (not 127.0.0.1)?
> >
> >
> >
> > On Thu, Dec 23, 2010 at 5:41 PM, Lars George <lars.george@gmail.com
> >wrote:
> >
> >> Please note that there is an issue with a test config file in the
> >> hbase-test.jar that overrides the configuration. Can you make sure you
> >> do not have the hbase-test.jar on your client's classpath?
> >>
> >> Lars
> >>
> >> On Thu, Dec 23, 2010 at 9:34 AM, King JKing <be...@gmail.com> wrote:
> >> > When I comment any line contain 127.0.0.1, HBase server can not run :(
> >> >
> >> > On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev <oc...@gmail.com>
> >> wrote:
> >> >
> >> >> 2010/12/23 King JKing <be...@gmail.com>
> >> >>
> >> >> > My HBase is running in standalone mode. Can HBase Client connect to
> a
> >> >> > remote
> >> >> > HBase (running in standalone mode)?
> >> >> >
> >> >>
> >> >> Yes. Propblem is in incorrect dns/hosts configuration. Remote client
> >> can't
> >> >> reach your server,
> >> >> because HBase uses incorrect address.
> >> >>
> >> >>
> >> >> >
> >> >> > On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <
> octo47@gmail.com>
> >> >> > wrote:
> >> >> >
> >> >> > > As you see, Region servers and master reigsted on 127.0.0.1, so
> >> clients
> >> >> > > can't reach them.
> >> >> > > Why it is i can't say. Only three things you can check:
> >> >> > > 1. /etc/hosts, where you hostname should'n be 127.0.0.1
> >> >> > > 2. hbas-site.xml in conf dir (try to specify ip address instead
> of
> >> >> > > hostname)
> >> >> > > 3. check you dns.
> >> >> > >
> >> >> > > 2010/12/23 King JKing <be...@gmail.com>
> >> >> > >
> >> >> > > > HBase tree in ZooKeeper is rooted at /hbase
> >> >> > > > Cluster up? true
> >> >> > > > Master address: 127.0.0.1:60000
> >> >> > > > Region server holding ROOT: 127.0.0.1:15587
> >> >> > > > Region servers:
> >> >> > > > - 127.0.0.1:15587
> >> >> > > > Quorum Server Statistics:
> >> >> > > > - 10.30.12.182:2181
> >> >> > > > Zookeeper version: 3.3.1-942149, built on 05/07/2010
> 17:14
> >> GMT
> >> >> > > > Clients:
> >> >> > > > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
> >> >> > > > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
> >> >> > > > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
> >> >> > > > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
> >> >> > > > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
> >> >> > > > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
> >> >> > > >
> >> >> > > > Latency min/avg/max: 0/1/22
> >> >> > > > Received: 98
> >> >> > > > Sent: 97
> >> >> > > > Outstanding: 0
> >> >> > > > Zxid: 0xe
> >> >> > > > Mode: standalone
> >> >> > > >
> >> >> > > > Node count: 10
> >> >> > > >
> >> >> > > >
> >> >> > > >
> >> >> > > > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <
> >> octo47@gmail.com>
> >> >> > > > wrote:
> >> >> > > >
> >> >> > > > > Wey strange. Can you post
> >> >> > > > > http://you_hbase_server:60010/zk.jsp<
> >> http://mars.nkb:60010/zk.jsp>
> >> >> > (or
> >> >> > > > > zk_dump from hbase shell)
> >> >> > > > >
> >> >> > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> >> > > > >
> >> >> > > > > > No. When I add your code to hbase-site.xml and restart
> HBase
> >> >> > Server.
> >> >> > > > When
> >> >> > > > > I
> >> >> > > > > > run HBase Client, client hang up.
> >> >> > > > > >
> >> >> > > > > > Here is some information on HBase server
> >> >> > > > > >
> >> >> > > > > > [root@ME-182 conf]# netstat -an|grep 60000
> >> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> >> >> > > > > > LISTEN
> >> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
> >> >> > > 127.0.0.1:60000
> >> >> > > > > > ESTABLISHED
> >> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
> >> >> > > 127.0.0.1:18965
> >> >> > > > > > ESTABLISHED
> >> >> > > > > >
> >> >> > > > > >
> >> >> > > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <
> >> >> > octo47@gmail.com>
> >> >> > > > > > wrote:
> >> >> > > > > >
> >> >> > > > > > > Are the error lines the same as above? Can you post error
> >> here?
> >> >> > > > > > >
> >> >> > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> >> >> 127.0.0.1:45369
> >> >> > > could
> >> >> > > > > > not
> >> >> > > > > > > be
> >> >> > > > > > >
> >> >> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> >> > > > > > >
> >> >> > > > > > > > I had already config this parameter. But still error
> >> >> > > > > > > >
> >> >> > > > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
> >> >> > > > octo47@gmail.com>
> >> >> > > > > > > > wrote:
> >> >> > > > > > > >
> >> >> > > > > > > > > Looks like in zookeeper stored wrong region server
> >> address.
> >> >> > Try
> >> >> > > > to
> >> >> > > > > > > > specify
> >> >> > > > > > > > > real address in hbase config
> >> >> > > > > > > > > (hbase-site.xml in conf dir of hbase installation).
> >> >> > > > > > > > >
> >> >> > > > > > > > > something like this.
> >> >> > > > > > > > >
> >> >> > > > > > > > > <property>
> >> >> > > > > > > > > <name>hbase.zookeeper.quorum</name>
> >> >> > > > > > > > > <value>you_host_or_ip</value>
> >> >> > > > > > > > > <description>Comma separated list of servers in
> the
> >> >> > > ZooKeeper
> >> >> > > > > > > Quorum.
> >> >> > > > > > > > > </description>
> >> >> > > > > > > > > </property>
> >> >> > > > > > > > >
> >> >> > > > > > > > >
> >> >> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> >> > > > > > > > >
> >> >> > > > > > > > > > HBase and client are on the different machine
> >> >> > > > > > > > > >
> >> >> > > > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> >> >> > > > > > octo47@gmail.com>
> >> >> > > > > > > > > > wrote:
> >> >> > > > > > > > > >
> >> >> > > > > > > > > > > Are HBase and client on the same machine?
> >> >> > > > > > > > > > >
> >> >> > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> >> > > > > > > > > > >
> >> >> > > > > > > > > > > > But still error...
> >> >> > > > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at
> /
> >> >> > > > > > 127.0.0.1:45369
> >> >> > > > > > > > could
> >> >> > > > > > > > > > > not
> >> >> > > > > > > > > > > > be
> >> >> > > > > > > > > > > > reached after 1 tries, giving up.
> >> >> > > > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at
> /
> >> >> > > > > > 127.0.0.1:45369
> >> >> > > > > > > > could
> >> >> > > > > > > > > > > not
> >> >> > > > > > > > > > > > be
> >> >> > > > > > > > > > > > reached after 1 tries, giving up.
> >> >> > > > > > > > > > > >
> >> >> > > > > > > > > > > >
> >> >> > > > > > > > > > > >
> >> >> > > > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey
> Stepachev
> >> <
> >> >> > > > > > > > octo47@gmail.com>
> >> >> > > > > > > > > > > > wrote:
> >> >> > > > > > > > > > > >
> >> >> > > > > > > > > > > > > place hbase-site.xml with two parameters in
> you
> >> >> > > > classpath.
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > hbase.zookeeper.quorum=your host
> >> >> > > > > > > > > > > > > hbase.zookeeper.property.clientPort=2181
> (this
> >> >> > > parameter
> >> >> > > > is
> >> >> > > > > > > > > optional)
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > another way, create Configuration and set
> this
> >> >> > > > parameters
> >> >> > > > > > from
> >> >> > > > > > > > any
> >> >> > > > > > > > > > > > sources
> >> >> > > > > > > > > > > > > you like
> >> >> > > > > > > > > > > > > (i use for example jndi in some of my apps).
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > c = HBaseConfiguration.create();
> >> >> > > > > > > > > > > > > c.set(propname, propvalue);
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > > Dear all,
> >> >> > > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > > I set up my HBase server in standalone
> mode.
> >> >> > > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > > Can HBase Client (from another machine)
> >> connect
> >> >> to
> >> >> > > this
> >> >> > > > > > HBase
> >> >> > > > > > > > > > server?
> >> >> > > > > > > > > > > > > > How can I do that?
> >> >> > > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > > A lot of people have the same question. But
> I
> >> did
> >> >> > not
> >> >> > > > > find
> >> >> > > > > > > > > correct
> >> >> > > > > > > > > > > > > answer.
> >> >> > > > > > > > > > > > > >
> >> >> > > > > > > > > > > > > > Thank a lot for support.
> >> >> > > > > > > > > > > > > >
> >> >> > > > > > > > > > > > >
> >> >> > > > > > > > > > > >
> >> >> > > > > > > > > > >
> >> >> > > > > > > > > >
> >> >> > > > > > > > >
> >> >> > > > > > > >
> >> >> > > > > > >
> >> >> > > > > >
> >> >> > > > >
> >> >> > > >
> >> >> > >
> >> >> >
> >> >>
> >> >
> >>
> >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
Thank everybody,
I can connect to remote HBase by HBase Client :)
I just comment line
127.0.0.1 mypc
on hosts and add line
10.199.25.23 mypc
More http://db.tmtec.biz/blogs/index.phAfterreadp/get-hadoop-up-and-running-without-dns,
*master *
::1 localhost6.localdomain6 localhost6
192.168.10.21 master ** master has to have accessible IP address(not ::1 nor
127.0.0.1) by slaves*
192.168.10.22 slave.yellow
192.168.10.23 slave.red
*slave.yellow*
127.0.0.1 slave.yellow localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.10.21 master
192.168.10.23 slave.red
*slave.red*
127.0.0.1 slave.red localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.10.21 master
192.168.10.22 slave.yellow
On Thu, Dec 23, 2010 at 6:17 PM, King JKing <be...@gmail.com> wrote:
> I've deleted this file. But error still :(
> Here is my zk_dump value
>
> HBase tree in ZooKeeper is rooted at /hbase
> Cluster up? true
> Master address: 127.0.0.1:60000
>
> Region server holding ROOT: 127.0.0.1:50752
> Region servers:
> - 127.0.0.1:50752
>
> Quorum Server Statistics:
> - 10.30.12.182:2181
>
> Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
> Clients:
> /10.30.12.182:47695[1](queued=0,recved=322,sent=322)
> /10.30.12.182:47694[1](queued=0,recved=337,sent=337)
>
> /127.0.0.1:17649[1](queued=0,recved=275,sent=275)
> /10.30.12.182:30085[0](queued=0,recved=1,sent=0)
> /127.0.0.1:63031[1](queued=0,recved=321,sent=321)
> /10.30.12.182:47698[1](queued=0,recved=338,sent=338)
>
>
> Latency min/avg/max: 0/0/22
> Received: 1652
> Sent: 1651
> Outstanding: 0
> Zxid: 0x16
>
> Mode: standalone
> Node count: 10
>
> And here is hbase client log
> 10/12/23 18:10:50 INFO ipc.HbaseRPC: Server at /127.0.0.1:50752 could not
> be reached after 1 tries, giving up.
> 10/12/23 18:10:51 INFO ipc.HbaseRPC: Server at /127.0.0.1:50752 could not
> be reached after 1 tries, giving up.
>
> How can I change Master Address to IP address (not 127.0.0.1)?
>
>
>
> On Thu, Dec 23, 2010 at 5:41 PM, Lars George <la...@gmail.com>wrote:
>
>> Please note that there is an issue with a test config file in the
>> hbase-test.jar that overrides the configuration. Can you make sure you
>> do not have the hbase-test.jar on your client's classpath?
>>
>> Lars
>>
>> On Thu, Dec 23, 2010 at 9:34 AM, King JKing <be...@gmail.com> wrote:
>> > When I comment any line contain 127.0.0.1, HBase server can not run :(
>> >
>> > On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev <oc...@gmail.com>
>> wrote:
>> >
>> >> 2010/12/23 King JKing <be...@gmail.com>
>> >>
>> >> > My HBase is running in standalone mode. Can HBase Client connect to a
>> >> > remote
>> >> > HBase (running in standalone mode)?
>> >> >
>> >>
>> >> Yes. Propblem is in incorrect dns/hosts configuration. Remote client
>> can't
>> >> reach your server,
>> >> because HBase uses incorrect address.
>> >>
>> >>
>> >> >
>> >> > On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <oc...@gmail.com>
>> >> > wrote:
>> >> >
>> >> > > As you see, Region servers and master reigsted on 127.0.0.1, so
>> clients
>> >> > > can't reach them.
>> >> > > Why it is i can't say. Only three things you can check:
>> >> > > 1. /etc/hosts, where you hostname should'n be 127.0.0.1
>> >> > > 2. hbas-site.xml in conf dir (try to specify ip address instead of
>> >> > > hostname)
>> >> > > 3. check you dns.
>> >> > >
>> >> > > 2010/12/23 King JKing <be...@gmail.com>
>> >> > >
>> >> > > > HBase tree in ZooKeeper is rooted at /hbase
>> >> > > > Cluster up? true
>> >> > > > Master address: 127.0.0.1:60000
>> >> > > > Region server holding ROOT: 127.0.0.1:15587
>> >> > > > Region servers:
>> >> > > > - 127.0.0.1:15587
>> >> > > > Quorum Server Statistics:
>> >> > > > - 10.30.12.182:2181
>> >> > > > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14
>> GMT
>> >> > > > Clients:
>> >> > > > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
>> >> > > > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
>> >> > > > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
>> >> > > > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
>> >> > > > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
>> >> > > > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
>> >> > > >
>> >> > > > Latency min/avg/max: 0/1/22
>> >> > > > Received: 98
>> >> > > > Sent: 97
>> >> > > > Outstanding: 0
>> >> > > > Zxid: 0xe
>> >> > > > Mode: standalone
>> >> > > >
>> >> > > > Node count: 10
>> >> > > >
>> >> > > >
>> >> > > >
>> >> > > > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <
>> octo47@gmail.com>
>> >> > > > wrote:
>> >> > > >
>> >> > > > > Wey strange. Can you post
>> >> > > > > http://you_hbase_server:60010/zk.jsp<
>> http://mars.nkb:60010/zk.jsp>
>> >> > (or
>> >> > > > > zk_dump from hbase shell)
>> >> > > > >
>> >> > > > > 2010/12/23 King JKing <be...@gmail.com>
>> >> > > > >
>> >> > > > > > No. When I add your code to hbase-site.xml and restart HBase
>> >> > Server.
>> >> > > > When
>> >> > > > > I
>> >> > > > > > run HBase Client, client hang up.
>> >> > > > > >
>> >> > > > > > Here is some information on HBase server
>> >> > > > > >
>> >> > > > > > [root@ME-182 conf]# netstat -an|grep 60000
>> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
>> >> > > > > > LISTEN
>> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
>> >> > > 127.0.0.1:60000
>> >> > > > > > ESTABLISHED
>> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
>> >> > > 127.0.0.1:18965
>> >> > > > > > ESTABLISHED
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <
>> >> > octo47@gmail.com>
>> >> > > > > > wrote:
>> >> > > > > >
>> >> > > > > > > Are the error lines the same as above? Can you post error
>> here?
>> >> > > > > > >
>> >> > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
>> >> 127.0.0.1:45369
>> >> > > could
>> >> > > > > > not
>> >> > > > > > > be
>> >> > > > > > >
>> >> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> >> > > > > > >
>> >> > > > > > > > I had already config this parameter. But still error
>> >> > > > > > > >
>> >> > > > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
>> >> > > > octo47@gmail.com>
>> >> > > > > > > > wrote:
>> >> > > > > > > >
>> >> > > > > > > > > Looks like in zookeeper stored wrong region server
>> address.
>> >> > Try
>> >> > > > to
>> >> > > > > > > > specify
>> >> > > > > > > > > real address in hbase config
>> >> > > > > > > > > (hbase-site.xml in conf dir of hbase installation).
>> >> > > > > > > > >
>> >> > > > > > > > > something like this.
>> >> > > > > > > > >
>> >> > > > > > > > > <property>
>> >> > > > > > > > > <name>hbase.zookeeper.quorum</name>
>> >> > > > > > > > > <value>you_host_or_ip</value>
>> >> > > > > > > > > <description>Comma separated list of servers in the
>> >> > > ZooKeeper
>> >> > > > > > > Quorum.
>> >> > > > > > > > > </description>
>> >> > > > > > > > > </property>
>> >> > > > > > > > >
>> >> > > > > > > > >
>> >> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> >> > > > > > > > >
>> >> > > > > > > > > > HBase and client are on the different machine
>> >> > > > > > > > > >
>> >> > > > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
>> >> > > > > > octo47@gmail.com>
>> >> > > > > > > > > > wrote:
>> >> > > > > > > > > >
>> >> > > > > > > > > > > Are HBase and client on the same machine?
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > > But still error...
>> >> > > > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
>> >> > > > > > 127.0.0.1:45369
>> >> > > > > > > > could
>> >> > > > > > > > > > > not
>> >> > > > > > > > > > > > be
>> >> > > > > > > > > > > > reached after 1 tries, giving up.
>> >> > > > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
>> >> > > > > > 127.0.0.1:45369
>> >> > > > > > > > could
>> >> > > > > > > > > > > not
>> >> > > > > > > > > > > > be
>> >> > > > > > > > > > > > reached after 1 tries, giving up.
>> >> > > > > > > > > > > >
>> >> > > > > > > > > > > >
>> >> > > > > > > > > > > >
>> >> > > > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev
>> <
>> >> > > > > > > > octo47@gmail.com>
>> >> > > > > > > > > > > > wrote:
>> >> > > > > > > > > > > >
>> >> > > > > > > > > > > > > place hbase-site.xml with two parameters in you
>> >> > > > classpath.
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > > hbase.zookeeper.quorum=your host
>> >> > > > > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this
>> >> > > parameter
>> >> > > > is
>> >> > > > > > > > > optional)
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > > another way, create Configuration and set this
>> >> > > > parameters
>> >> > > > > > from
>> >> > > > > > > > any
>> >> > > > > > > > > > > > sources
>> >> > > > > > > > > > > > > you like
>> >> > > > > > > > > > > > > (i use for example jndi in some of my apps).
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > > c = HBaseConfiguration.create();
>> >> > > > > > > > > > > > > c.set(propname, propvalue);
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > > > > Dear all,
>> >> > > > > > > > > > > > > >
>> >> > > > > > > > > > > > > > I set up my HBase server in standalone mode.
>> >> > > > > > > > > > > > > >
>> >> > > > > > > > > > > > > > Can HBase Client (from another machine)
>> connect
>> >> to
>> >> > > this
>> >> > > > > > HBase
>> >> > > > > > > > > > server?
>> >> > > > > > > > > > > > > > How can I do that?
>> >> > > > > > > > > > > > > >
>> >> > > > > > > > > > > > > > A lot of people have the same question. But I
>> did
>> >> > not
>> >> > > > > find
>> >> > > > > > > > > correct
>> >> > > > > > > > > > > > > answer.
>> >> > > > > > > > > > > > > >
>> >> > > > > > > > > > > > > > Thank a lot for support.
>> >> > > > > > > > > > > > > >
>> >> > > > > > > > > > > > >
>> >> > > > > > > > > > > >
>> >> > > > > > > > > > >
>> >> > > > > > > > > >
>> >> > > > > > > > >
>> >> > > > > > > >
>> >> > > > > > >
>> >> > > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> >
>>
>
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
I've deleted this file. But error still :(
Here is my zk_dump value
HBase tree in ZooKeeper is rooted at /hbase
Cluster up? true
Master address: 127.0.0.1:60000
Region server holding ROOT: 127.0.0.1:50752
Region servers:
- 127.0.0.1:50752
Quorum Server Statistics:
- 10.30.12.182:2181
Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
Clients:
/10.30.12.182:47695[1](queued=0,recved=322,sent=322)
/10.30.12.182:47694[1](queued=0,recved=337,sent=337)
/127.0.0.1:17649[1](queued=0,recved=275,sent=275)
/10.30.12.182:30085[0](queued=0,recved=1,sent=0)
/127.0.0.1:63031[1](queued=0,recved=321,sent=321)
/10.30.12.182:47698[1](queued=0,recved=338,sent=338)
Latency min/avg/max: 0/0/22
Received: 1652
Sent: 1651
Outstanding: 0
Zxid: 0x16
Mode: standalone
Node count: 10
And here is hbase client log
10/12/23 18:10:50 INFO ipc.HbaseRPC: Server at /127.0.0.1:50752 could not be
reached after 1 tries, giving up.
10/12/23 18:10:51 INFO ipc.HbaseRPC: Server at /127.0.0.1:50752 could not be
reached after 1 tries, giving up.
How can I change Master Address to IP address (not 127.0.0.1)?
On Thu, Dec 23, 2010 at 5:41 PM, Lars George <la...@gmail.com> wrote:
> Please note that there is an issue with a test config file in the
> hbase-test.jar that overrides the configuration. Can you make sure you
> do not have the hbase-test.jar on your client's classpath?
>
> Lars
>
> On Thu, Dec 23, 2010 at 9:34 AM, King JKing <be...@gmail.com> wrote:
> > When I comment any line contain 127.0.0.1, HBase server can not run :(
> >
> > On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
> >
> >> 2010/12/23 King JKing <be...@gmail.com>
> >>
> >> > My HBase is running in standalone mode. Can HBase Client connect to a
> >> > remote
> >> > HBase (running in standalone mode)?
> >> >
> >>
> >> Yes. Propblem is in incorrect dns/hosts configuration. Remote client
> can't
> >> reach your server,
> >> because HBase uses incorrect address.
> >>
> >>
> >> >
> >> > On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <oc...@gmail.com>
> >> > wrote:
> >> >
> >> > > As you see, Region servers and master reigsted on 127.0.0.1, so
> clients
> >> > > can't reach them.
> >> > > Why it is i can't say. Only three things you can check:
> >> > > 1. /etc/hosts, where you hostname should'n be 127.0.0.1
> >> > > 2. hbas-site.xml in conf dir (try to specify ip address instead of
> >> > > hostname)
> >> > > 3. check you dns.
> >> > >
> >> > > 2010/12/23 King JKing <be...@gmail.com>
> >> > >
> >> > > > HBase tree in ZooKeeper is rooted at /hbase
> >> > > > Cluster up? true
> >> > > > Master address: 127.0.0.1:60000
> >> > > > Region server holding ROOT: 127.0.0.1:15587
> >> > > > Region servers:
> >> > > > - 127.0.0.1:15587
> >> > > > Quorum Server Statistics:
> >> > > > - 10.30.12.182:2181
> >> > > > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14
> GMT
> >> > > > Clients:
> >> > > > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
> >> > > > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
> >> > > > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
> >> > > > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
> >> > > > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
> >> > > > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
> >> > > >
> >> > > > Latency min/avg/max: 0/1/22
> >> > > > Received: 98
> >> > > > Sent: 97
> >> > > > Outstanding: 0
> >> > > > Zxid: 0xe
> >> > > > Mode: standalone
> >> > > >
> >> > > > Node count: 10
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <
> octo47@gmail.com>
> >> > > > wrote:
> >> > > >
> >> > > > > Wey strange. Can you post
> >> > > > > http://you_hbase_server:60010/zk.jsp<
> http://mars.nkb:60010/zk.jsp>
> >> > (or
> >> > > > > zk_dump from hbase shell)
> >> > > > >
> >> > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> > > > >
> >> > > > > > No. When I add your code to hbase-site.xml and restart HBase
> >> > Server.
> >> > > > When
> >> > > > > I
> >> > > > > > run HBase Client, client hang up.
> >> > > > > >
> >> > > > > > Here is some information on HBase server
> >> > > > > >
> >> > > > > > [root@ME-182 conf]# netstat -an|grep 60000
> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> >> > > > > > LISTEN
> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
> >> > > 127.0.0.1:60000
> >> > > > > > ESTABLISHED
> >> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
> >> > > 127.0.0.1:18965
> >> > > > > > ESTABLISHED
> >> > > > > >
> >> > > > > >
> >> > > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <
> >> > octo47@gmail.com>
> >> > > > > > wrote:
> >> > > > > >
> >> > > > > > > Are the error lines the same as above? Can you post error
> here?
> >> > > > > > >
> >> > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> >> 127.0.0.1:45369
> >> > > could
> >> > > > > > not
> >> > > > > > > be
> >> > > > > > >
> >> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> > > > > > >
> >> > > > > > > > I had already config this parameter. But still error
> >> > > > > > > >
> >> > > > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
> >> > > > octo47@gmail.com>
> >> > > > > > > > wrote:
> >> > > > > > > >
> >> > > > > > > > > Looks like in zookeeper stored wrong region server
> address.
> >> > Try
> >> > > > to
> >> > > > > > > > specify
> >> > > > > > > > > real address in hbase config
> >> > > > > > > > > (hbase-site.xml in conf dir of hbase installation).
> >> > > > > > > > >
> >> > > > > > > > > something like this.
> >> > > > > > > > >
> >> > > > > > > > > <property>
> >> > > > > > > > > <name>hbase.zookeeper.quorum</name>
> >> > > > > > > > > <value>you_host_or_ip</value>
> >> > > > > > > > > <description>Comma separated list of servers in the
> >> > > ZooKeeper
> >> > > > > > > Quorum.
> >> > > > > > > > > </description>
> >> > > > > > > > > </property>
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> > > > > > > > >
> >> > > > > > > > > > HBase and client are on the different machine
> >> > > > > > > > > >
> >> > > > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> >> > > > > > octo47@gmail.com>
> >> > > > > > > > > > wrote:
> >> > > > > > > > > >
> >> > > > > > > > > > > Are HBase and client on the same machine?
> >> > > > > > > > > > >
> >> > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> > > > > > > > > > >
> >> > > > > > > > > > > > But still error...
> >> > > > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> >> > > > > > 127.0.0.1:45369
> >> > > > > > > > could
> >> > > > > > > > > > > not
> >> > > > > > > > > > > > be
> >> > > > > > > > > > > > reached after 1 tries, giving up.
> >> > > > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> >> > > > > > 127.0.0.1:45369
> >> > > > > > > > could
> >> > > > > > > > > > > not
> >> > > > > > > > > > > > be
> >> > > > > > > > > > > > reached after 1 tries, giving up.
> >> > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev
> <
> >> > > > > > > > octo47@gmail.com>
> >> > > > > > > > > > > > wrote:
> >> > > > > > > > > > > >
> >> > > > > > > > > > > > > place hbase-site.xml with two parameters in you
> >> > > > classpath.
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > hbase.zookeeper.quorum=your host
> >> > > > > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this
> >> > > parameter
> >> > > > is
> >> > > > > > > > > optional)
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > another way, create Configuration and set this
> >> > > > parameters
> >> > > > > > from
> >> > > > > > > > any
> >> > > > > > > > > > > > sources
> >> > > > > > > > > > > > > you like
> >> > > > > > > > > > > > > (i use for example jndi in some of my apps).
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > c = HBaseConfiguration.create();
> >> > > > > > > > > > > > > c.set(propname, propvalue);
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > > > > Dear all,
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > I set up my HBase server in standalone mode.
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > Can HBase Client (from another machine)
> connect
> >> to
> >> > > this
> >> > > > > > HBase
> >> > > > > > > > > > server?
> >> > > > > > > > > > > > > > How can I do that?
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > A lot of people have the same question. But I
> did
> >> > not
> >> > > > > find
> >> > > > > > > > > correct
> >> > > > > > > > > > > > > answer.
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > > > Thank a lot for support.
> >> > > > > > > > > > > > > >
> >> > > > > > > > > > > > >
> >> > > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > >
> >> > > > > > >
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> >
>
Re: HBase Client connect to remote HBase
Posted by Lars George <la...@gmail.com>.
Please note that there is an issue with a test config file in the
hbase-test.jar that overrides the configuration. Can you make sure you
do not have the hbase-test.jar on your client's classpath?
Lars
On Thu, Dec 23, 2010 at 9:34 AM, King JKing <be...@gmail.com> wrote:
> When I comment any line contain 127.0.0.1, HBase server can not run :(
>
> On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev <oc...@gmail.com> wrote:
>
>> 2010/12/23 King JKing <be...@gmail.com>
>>
>> > My HBase is running in standalone mode. Can HBase Client connect to a
>> > remote
>> > HBase (running in standalone mode)?
>> >
>>
>> Yes. Propblem is in incorrect dns/hosts configuration. Remote client can't
>> reach your server,
>> because HBase uses incorrect address.
>>
>>
>> >
>> > On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <oc...@gmail.com>
>> > wrote:
>> >
>> > > As you see, Region servers and master reigsted on 127.0.0.1, so clients
>> > > can't reach them.
>> > > Why it is i can't say. Only three things you can check:
>> > > 1. /etc/hosts, where you hostname should'n be 127.0.0.1
>> > > 2. hbas-site.xml in conf dir (try to specify ip address instead of
>> > > hostname)
>> > > 3. check you dns.
>> > >
>> > > 2010/12/23 King JKing <be...@gmail.com>
>> > >
>> > > > HBase tree in ZooKeeper is rooted at /hbase
>> > > > Cluster up? true
>> > > > Master address: 127.0.0.1:60000
>> > > > Region server holding ROOT: 127.0.0.1:15587
>> > > > Region servers:
>> > > > - 127.0.0.1:15587
>> > > > Quorum Server Statistics:
>> > > > - 10.30.12.182:2181
>> > > > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
>> > > > Clients:
>> > > > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
>> > > > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
>> > > > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
>> > > > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
>> > > > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
>> > > > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
>> > > >
>> > > > Latency min/avg/max: 0/1/22
>> > > > Received: 98
>> > > > Sent: 97
>> > > > Outstanding: 0
>> > > > Zxid: 0xe
>> > > > Mode: standalone
>> > > >
>> > > > Node count: 10
>> > > >
>> > > >
>> > > >
>> > > > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <oc...@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > Wey strange. Can you post
>> > > > > http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp>
>> > (or
>> > > > > zk_dump from hbase shell)
>> > > > >
>> > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > >
>> > > > > > No. When I add your code to hbase-site.xml and restart HBase
>> > Server.
>> > > > When
>> > > > > I
>> > > > > > run HBase Client, client hang up.
>> > > > > >
>> > > > > > Here is some information on HBase server
>> > > > > >
>> > > > > > [root@ME-182 conf]# netstat -an|grep 60000
>> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
>> > > > > > LISTEN
>> > > > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
>> > > 127.0.0.1:60000
>> > > > > > ESTABLISHED
>> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
>> > > 127.0.0.1:18965
>> > > > > > ESTABLISHED
>> > > > > >
>> > > > > >
>> > > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <
>> > octo47@gmail.com>
>> > > > > > wrote:
>> > > > > >
>> > > > > > > Are the error lines the same as above? Can you post error here?
>> > > > > > >
>> > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
>> 127.0.0.1:45369
>> > > could
>> > > > > > not
>> > > > > > > be
>> > > > > > >
>> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > > > >
>> > > > > > > > I had already config this parameter. But still error
>> > > > > > > >
>> > > > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
>> > > > octo47@gmail.com>
>> > > > > > > > wrote:
>> > > > > > > >
>> > > > > > > > > Looks like in zookeeper stored wrong region server address.
>> > Try
>> > > > to
>> > > > > > > > specify
>> > > > > > > > > real address in hbase config
>> > > > > > > > > (hbase-site.xml in conf dir of hbase installation).
>> > > > > > > > >
>> > > > > > > > > something like this.
>> > > > > > > > >
>> > > > > > > > > <property>
>> > > > > > > > > <name>hbase.zookeeper.quorum</name>
>> > > > > > > > > <value>you_host_or_ip</value>
>> > > > > > > > > <description>Comma separated list of servers in the
>> > > ZooKeeper
>> > > > > > > Quorum.
>> > > > > > > > > </description>
>> > > > > > > > > </property>
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > > > > > >
>> > > > > > > > > > HBase and client are on the different machine
>> > > > > > > > > >
>> > > > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
>> > > > > > octo47@gmail.com>
>> > > > > > > > > > wrote:
>> > > > > > > > > >
>> > > > > > > > > > > Are HBase and client on the same machine?
>> > > > > > > > > > >
>> > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > > > > > > > >
>> > > > > > > > > > > > But still error...
>> > > > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
>> > > > > > 127.0.0.1:45369
>> > > > > > > > could
>> > > > > > > > > > > not
>> > > > > > > > > > > > be
>> > > > > > > > > > > > reached after 1 tries, giving up.
>> > > > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
>> > > > > > 127.0.0.1:45369
>> > > > > > > > could
>> > > > > > > > > > > not
>> > > > > > > > > > > > be
>> > > > > > > > > > > > reached after 1 tries, giving up.
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
>> > > > > > > > octo47@gmail.com>
>> > > > > > > > > > > > wrote:
>> > > > > > > > > > > >
>> > > > > > > > > > > > > place hbase-site.xml with two parameters in you
>> > > > classpath.
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > hbase.zookeeper.quorum=your host
>> > > > > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this
>> > > parameter
>> > > > is
>> > > > > > > > > optional)
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > another way, create Configuration and set this
>> > > > parameters
>> > > > > > from
>> > > > > > > > any
>> > > > > > > > > > > > sources
>> > > > > > > > > > > > > you like
>> > > > > > > > > > > > > (i use for example jndi in some of my apps).
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > c = HBaseConfiguration.create();
>> > > > > > > > > > > > > c.set(propname, propvalue);
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > > > > > > > > > >
>> > > > > > > > > > > > > > Dear all,
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > I set up my HBase server in standalone mode.
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > Can HBase Client (from another machine) connect
>> to
>> > > this
>> > > > > > HBase
>> > > > > > > > > > server?
>> > > > > > > > > > > > > > How can I do that?
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > A lot of people have the same question. But I did
>> > not
>> > > > > find
>> > > > > > > > > correct
>> > > > > > > > > > > > > answer.
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > > > Thank a lot for support.
>> > > > > > > > > > > > > >
>> > > > > > > > > > > > >
>> > > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
When I comment any line contain 127.0.0.1, HBase server can not run :(
On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> 2010/12/23 King JKing <be...@gmail.com>
>
> > My HBase is running in standalone mode. Can HBase Client connect to a
> > remote
> > HBase (running in standalone mode)?
> >
>
> Yes. Propblem is in incorrect dns/hosts configuration. Remote client can't
> reach your server,
> because HBase uses incorrect address.
>
>
> >
> > On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <oc...@gmail.com>
> > wrote:
> >
> > > As you see, Region servers and master reigsted on 127.0.0.1, so clients
> > > can't reach them.
> > > Why it is i can't say. Only three things you can check:
> > > 1. /etc/hosts, where you hostname should'n be 127.0.0.1
> > > 2. hbas-site.xml in conf dir (try to specify ip address instead of
> > > hostname)
> > > 3. check you dns.
> > >
> > > 2010/12/23 King JKing <be...@gmail.com>
> > >
> > > > HBase tree in ZooKeeper is rooted at /hbase
> > > > Cluster up? true
> > > > Master address: 127.0.0.1:60000
> > > > Region server holding ROOT: 127.0.0.1:15587
> > > > Region servers:
> > > > - 127.0.0.1:15587
> > > > Quorum Server Statistics:
> > > > - 10.30.12.182:2181
> > > > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
> > > > Clients:
> > > > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
> > > > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
> > > > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
> > > > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
> > > > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
> > > > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
> > > >
> > > > Latency min/avg/max: 0/1/22
> > > > Received: 98
> > > > Sent: 97
> > > > Outstanding: 0
> > > > Zxid: 0xe
> > > > Mode: standalone
> > > >
> > > > Node count: 10
> > > >
> > > >
> > > >
> > > > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <oc...@gmail.com>
> > > > wrote:
> > > >
> > > > > Wey strange. Can you post
> > > > > http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp>
> > (or
> > > > > zk_dump from hbase shell)
> > > > >
> > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > >
> > > > > > No. When I add your code to hbase-site.xml and restart HBase
> > Server.
> > > > When
> > > > > I
> > > > > > run HBase Client, client hang up.
> > > > > >
> > > > > > Here is some information on HBase server
> > > > > >
> > > > > > [root@ME-182 conf]# netstat -an|grep 60000
> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> > > > > > LISTEN
> > > > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
> > > 127.0.0.1:60000
> > > > > > ESTABLISHED
> > > > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
> > > 127.0.0.1:18965
> > > > > > ESTABLISHED
> > > > > >
> > > > > >
> > > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <
> > octo47@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Are the error lines the same as above? Can you post error here?
> > > > > > >
> > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> 127.0.0.1:45369
> > > could
> > > > > > not
> > > > > > > be
> > > > > > >
> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > >
> > > > > > > > I had already config this parameter. But still error
> > > > > > > >
> > > > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
> > > > octo47@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Looks like in zookeeper stored wrong region server address.
> > Try
> > > > to
> > > > > > > > specify
> > > > > > > > > real address in hbase config
> > > > > > > > > (hbase-site.xml in conf dir of hbase installation).
> > > > > > > > >
> > > > > > > > > something like this.
> > > > > > > > >
> > > > > > > > > <property>
> > > > > > > > > <name>hbase.zookeeper.quorum</name>
> > > > > > > > > <value>you_host_or_ip</value>
> > > > > > > > > <description>Comma separated list of servers in the
> > > ZooKeeper
> > > > > > > Quorum.
> > > > > > > > > </description>
> > > > > > > > > </property>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > >
> > > > > > > > > > HBase and client are on the different machine
> > > > > > > > > >
> > > > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> > > > > > octo47@gmail.com>
> > > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > Are HBase and client on the same machine?
> > > > > > > > > > >
> > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > > > >
> > > > > > > > > > > > But still error...
> > > > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> > > > > > 127.0.0.1:45369
> > > > > > > > could
> > > > > > > > > > > not
> > > > > > > > > > > > be
> > > > > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> > > > > > 127.0.0.1:45369
> > > > > > > > could
> > > > > > > > > > > not
> > > > > > > > > > > > be
> > > > > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > > > > > > > octo47@gmail.com>
> > > > > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > > place hbase-site.xml with two parameters in you
> > > > classpath.
> > > > > > > > > > > > >
> > > > > > > > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this
> > > parameter
> > > > is
> > > > > > > > > optional)
> > > > > > > > > > > > >
> > > > > > > > > > > > > another way, create Configuration and set this
> > > > parameters
> > > > > > from
> > > > > > > > any
> > > > > > > > > > > > sources
> > > > > > > > > > > > > you like
> > > > > > > > > > > > > (i use for example jndi in some of my apps).
> > > > > > > > > > > > >
> > > > > > > > > > > > > c = HBaseConfiguration.create();
> > > > > > > > > > > > > c.set(propname, propvalue);
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Dear all,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Can HBase Client (from another machine) connect
> to
> > > this
> > > > > > HBase
> > > > > > > > > > server?
> > > > > > > > > > > > > > How can I do that?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > A lot of people have the same question. But I did
> > not
> > > > > find
> > > > > > > > > correct
> > > > > > > > > > > > > answer.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thank a lot for support.
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
2010/12/23 King JKing <be...@gmail.com>
> My HBase is running in standalone mode. Can HBase Client connect to a
> remote
> HBase (running in standalone mode)?
>
Yes. Propblem is in incorrect dns/hosts configuration. Remote client can't
reach your server,
because HBase uses incorrect address.
>
> On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
>
> > As you see, Region servers and master reigsted on 127.0.0.1, so clients
> > can't reach them.
> > Why it is i can't say. Only three things you can check:
> > 1. /etc/hosts, where you hostname should'n be 127.0.0.1
> > 2. hbas-site.xml in conf dir (try to specify ip address instead of
> > hostname)
> > 3. check you dns.
> >
> > 2010/12/23 King JKing <be...@gmail.com>
> >
> > > HBase tree in ZooKeeper is rooted at /hbase
> > > Cluster up? true
> > > Master address: 127.0.0.1:60000
> > > Region server holding ROOT: 127.0.0.1:15587
> > > Region servers:
> > > - 127.0.0.1:15587
> > > Quorum Server Statistics:
> > > - 10.30.12.182:2181
> > > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
> > > Clients:
> > > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
> > > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
> > > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
> > > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
> > > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
> > > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
> > >
> > > Latency min/avg/max: 0/1/22
> > > Received: 98
> > > Sent: 97
> > > Outstanding: 0
> > > Zxid: 0xe
> > > Mode: standalone
> > >
> > > Node count: 10
> > >
> > >
> > >
> > > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <oc...@gmail.com>
> > > wrote:
> > >
> > > > Wey strange. Can you post
> > > > http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp>
> (or
> > > > zk_dump from hbase shell)
> > > >
> > > > 2010/12/23 King JKing <be...@gmail.com>
> > > >
> > > > > No. When I add your code to hbase-site.xml and restart HBase
> Server.
> > > When
> > > > I
> > > > > run HBase Client, client hang up.
> > > > >
> > > > > Here is some information on HBase server
> > > > >
> > > > > [root@ME-182 conf]# netstat -an|grep 60000
> > > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> > > > > LISTEN
> > > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
> > 127.0.0.1:60000
> > > > > ESTABLISHED
> > > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
> > 127.0.0.1:18965
> > > > > ESTABLISHED
> > > > >
> > > > >
> > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <
> octo47@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Are the error lines the same as above? Can you post error here?
> > > > > >
> > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
> > could
> > > > > not
> > > > > > be
> > > > > >
> > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > >
> > > > > > > I had already config this parameter. But still error
> > > > > > >
> > > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
> > > octo47@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Looks like in zookeeper stored wrong region server address.
> Try
> > > to
> > > > > > > specify
> > > > > > > > real address in hbase config
> > > > > > > > (hbase-site.xml in conf dir of hbase installation).
> > > > > > > >
> > > > > > > > something like this.
> > > > > > > >
> > > > > > > > <property>
> > > > > > > > <name>hbase.zookeeper.quorum</name>
> > > > > > > > <value>you_host_or_ip</value>
> > > > > > > > <description>Comma separated list of servers in the
> > ZooKeeper
> > > > > > Quorum.
> > > > > > > > </description>
> > > > > > > > </property>
> > > > > > > >
> > > > > > > >
> > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > >
> > > > > > > > > HBase and client are on the different machine
> > > > > > > > >
> > > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> > > > > octo47@gmail.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Are HBase and client on the same machine?
> > > > > > > > > >
> > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > > >
> > > > > > > > > > > But still error...
> > > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> > > > > 127.0.0.1:45369
> > > > > > > could
> > > > > > > > > > not
> > > > > > > > > > > be
> > > > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> > > > > 127.0.0.1:45369
> > > > > > > could
> > > > > > > > > > not
> > > > > > > > > > > be
> > > > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > > > > > > octo47@gmail.com>
> > > > > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > > place hbase-site.xml with two parameters in you
> > > classpath.
> > > > > > > > > > > >
> > > > > > > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this
> > parameter
> > > is
> > > > > > > > optional)
> > > > > > > > > > > >
> > > > > > > > > > > > another way, create Configuration and set this
> > > parameters
> > > > > from
> > > > > > > any
> > > > > > > > > > > sources
> > > > > > > > > > > > you like
> > > > > > > > > > > > (i use for example jndi in some of my apps).
> > > > > > > > > > > >
> > > > > > > > > > > > c = HBaseConfiguration.create();
> > > > > > > > > > > > c.set(propname, propvalue);
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > > > > >
> > > > > > > > > > > > > Dear all,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Can HBase Client (from another machine) connect to
> > this
> > > > > HBase
> > > > > > > > > server?
> > > > > > > > > > > > > How can I do that?
> > > > > > > > > > > > >
> > > > > > > > > > > > > A lot of people have the same question. But I did
> not
> > > > find
> > > > > > > > correct
> > > > > > > > > > > > answer.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thank a lot for support.
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
My HBase is running in standalone mode. Can HBase Client connect to a remote
HBase (running in standalone mode)?
On Thu, Dec 23, 2010 at 3:44 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> As you see, Region servers and master reigsted on 127.0.0.1, so clients
> can't reach them.
> Why it is i can't say. Only three things you can check:
> 1. /etc/hosts, where you hostname should'n be 127.0.0.1
> 2. hbas-site.xml in conf dir (try to specify ip address instead of
> hostname)
> 3. check you dns.
>
> 2010/12/23 King JKing <be...@gmail.com>
>
> > HBase tree in ZooKeeper is rooted at /hbase
> > Cluster up? true
> > Master address: 127.0.0.1:60000
> > Region server holding ROOT: 127.0.0.1:15587
> > Region servers:
> > - 127.0.0.1:15587
> > Quorum Server Statistics:
> > - 10.30.12.182:2181
> > Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
> > Clients:
> > /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
> > /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
> > /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
> > /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
> > /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
> > /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
> >
> > Latency min/avg/max: 0/1/22
> > Received: 98
> > Sent: 97
> > Outstanding: 0
> > Zxid: 0xe
> > Mode: standalone
> >
> > Node count: 10
> >
> >
> >
> > On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <oc...@gmail.com>
> > wrote:
> >
> > > Wey strange. Can you post
> > > http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp> (or
> > > zk_dump from hbase shell)
> > >
> > > 2010/12/23 King JKing <be...@gmail.com>
> > >
> > > > No. When I add your code to hbase-site.xml and restart HBase Server.
> > When
> > > I
> > > > run HBase Client, client hang up.
> > > >
> > > > Here is some information on HBase server
> > > >
> > > > [root@ME-182 conf]# netstat -an|grep 60000
> > > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> > > > LISTEN
> > > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:
> 127.0.0.1:60000
> > > > ESTABLISHED
> > > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:
> 127.0.0.1:18965
> > > > ESTABLISHED
> > > >
> > > >
> > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <oc...@gmail.com>
> > > > wrote:
> > > >
> > > > > Are the error lines the same as above? Can you post error here?
> > > > >
> > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
> could
> > > > not
> > > > > be
> > > > >
> > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > >
> > > > > > I had already config this parameter. But still error
> > > > > >
> > > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
> > octo47@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Looks like in zookeeper stored wrong region server address. Try
> > to
> > > > > > specify
> > > > > > > real address in hbase config
> > > > > > > (hbase-site.xml in conf dir of hbase installation).
> > > > > > >
> > > > > > > something like this.
> > > > > > >
> > > > > > > <property>
> > > > > > > <name>hbase.zookeeper.quorum</name>
> > > > > > > <value>you_host_or_ip</value>
> > > > > > > <description>Comma separated list of servers in the
> ZooKeeper
> > > > > Quorum.
> > > > > > > </description>
> > > > > > > </property>
> > > > > > >
> > > > > > >
> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > >
> > > > > > > > HBase and client are on the different machine
> > > > > > > >
> > > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> > > > octo47@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Are HBase and client on the same machine?
> > > > > > > > >
> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > >
> > > > > > > > > > But still error...
> > > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> > > > 127.0.0.1:45369
> > > > > > could
> > > > > > > > > not
> > > > > > > > > > be
> > > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> > > > 127.0.0.1:45369
> > > > > > could
> > > > > > > > > not
> > > > > > > > > > be
> > > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > > > > > octo47@gmail.com>
> > > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > place hbase-site.xml with two parameters in you
> > classpath.
> > > > > > > > > > >
> > > > > > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this
> parameter
> > is
> > > > > > > optional)
> > > > > > > > > > >
> > > > > > > > > > > another way, create Configuration and set this
> > parameters
> > > > from
> > > > > > any
> > > > > > > > > > sources
> > > > > > > > > > > you like
> > > > > > > > > > > (i use for example jndi in some of my apps).
> > > > > > > > > > >
> > > > > > > > > > > c = HBaseConfiguration.create();
> > > > > > > > > > > c.set(propname, propvalue);
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > > > >
> > > > > > > > > > > > Dear all,
> > > > > > > > > > > >
> > > > > > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > > > > > >
> > > > > > > > > > > > Can HBase Client (from another machine) connect to
> this
> > > > HBase
> > > > > > > > server?
> > > > > > > > > > > > How can I do that?
> > > > > > > > > > > >
> > > > > > > > > > > > A lot of people have the same question. But I did not
> > > find
> > > > > > > correct
> > > > > > > > > > > answer.
> > > > > > > > > > > >
> > > > > > > > > > > > Thank a lot for support.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by Daniel Iancu <da...@1and1.ro>.
I encountered same issue, if you use /etc/hosts file check if your
machine name is associated with 127.0.0.1. At limit, comment any line
containing 127.0.0.1 and restart hbase then retry.
On 12/23/2010 10:44 AM, Andrey Stepachev wrote:
> As you see, Region servers and master reigsted on 127.0.0.1, so clients
> can't reach them.
> Why it is i can't say. Only three things you can check:
> 1. /etc/hosts, where you hostname should'n be 127.0.0.1
> 2. hbas-site.xml in conf dir (try to specify ip address instead of hostname)
> 3. check you dns.
>
> 2010/12/23 King JKing<be...@gmail.com>
>
>> HBase tree in ZooKeeper is rooted at /hbase
>> Cluster up? true
>> Master address: 127.0.0.1:60000
>> Region server holding ROOT: 127.0.0.1:15587
>> Region servers:
>> - 127.0.0.1:15587
>> Quorum Server Statistics:
>> - 10.30.12.182:2181
>> Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
>> Clients:
>> /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
>> /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
>> /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
>> /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
>> /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
>> /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
>>
>> Latency min/avg/max: 0/1/22
>> Received: 98
>> Sent: 97
>> Outstanding: 0
>> Zxid: 0xe
>> Mode: standalone
>>
>> Node count: 10
>>
>>
>>
>> On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev<oc...@gmail.com>
>> wrote:
>>
>>> Wey strange. Can you post
>>> http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp> (or
>>> zk_dump from hbase shell)
>>>
>>> 2010/12/23 King JKing<be...@gmail.com>
>>>
>>>> No. When I add your code to hbase-site.xml and restart HBase Server.
>> When
>>> I
>>>> run HBase Client, client hang up.
>>>>
>>>> Here is some information on HBase server
>>>>
>>>> [root@ME-182 conf]# netstat -an|grep 60000
>>>> tcp 0 0 ::ffff:127.0.0.1:60000 :::*
>>>> LISTEN
>>>> tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000
>>>> ESTABLISHED
>>>> tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965
>>>> ESTABLISHED
>>>>
>>>>
>>>> On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev<oc...@gmail.com>
>>>> wrote:
>>>>
>>>>> Are the error lines the same as above? Can you post error here?
>>>>>
>>>>> 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369could
>>>> not
>>>>> be
>>>>>
>>>>> 2010/12/23 King JKing<be...@gmail.com>
>>>>>
>>>>>> I had already config this parameter. But still error
>>>>>>
>>>>>> On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev<
>> octo47@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Looks like in zookeeper stored wrong region server address. Try
>> to
>>>>>> specify
>>>>>>> real address in hbase config
>>>>>>> (hbase-site.xml in conf dir of hbase installation).
>>>>>>>
>>>>>>> something like this.
>>>>>>>
>>>>>>> <property>
>>>>>>> <name>hbase.zookeeper.quorum</name>
>>>>>>> <value>you_host_or_ip</value>
>>>>>>> <description>Comma separated list of servers in the ZooKeeper
>>>>> Quorum.
>>>>>>> </description>
>>>>>>> </property>
>>>>>>>
>>>>>>>
>>>>>>> 2010/12/23 King JKing<be...@gmail.com>
>>>>>>>
>>>>>>>> HBase and client are on the different machine
>>>>>>>>
>>>>>>>> On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev<
>>>> octo47@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Are HBase and client on the same machine?
>>>>>>>>>
>>>>>>>>> 2010/12/23 King JKing<be...@gmail.com>
>>>>>>>>>
>>>>>>>>>> But still error...
>>>>>>>>>> 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
>>>> 127.0.0.1:45369
>>>>>> could
>>>>>>>>> not
>>>>>>>>>> be
>>>>>>>>>> reached after 1 tries, giving up.
>>>>>>>>>> 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
>>>> 127.0.0.1:45369
>>>>>> could
>>>>>>>>> not
>>>>>>>>>> be
>>>>>>>>>> reached after 1 tries, giving up.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev<
>>>>>> octo47@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> place hbase-site.xml with two parameters in you
>> classpath.
>>>>>>>>>>> hbase.zookeeper.quorum=your host
>>>>>>>>>>> hbase.zookeeper.property.clientPort=2181 (this parameter
>> is
>>>>>>> optional)
>>>>>>>>>>> another way, create Configuration and set this
>> parameters
>>>> from
>>>>>> any
>>>>>>>>>> sources
>>>>>>>>>>> you like
>>>>>>>>>>> (i use for example jndi in some of my apps).
>>>>>>>>>>>
>>>>>>>>>>> c = HBaseConfiguration.create();
>>>>>>>>>>> c.set(propname, propvalue);
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2010/12/23 King JKing<be...@gmail.com>
>>>>>>>>>>>
>>>>>>>>>>>> Dear all,
>>>>>>>>>>>>
>>>>>>>>>>>> I set up my HBase server in standalone mode.
>>>>>>>>>>>>
>>>>>>>>>>>> Can HBase Client (from another machine) connect to this
>>>> HBase
>>>>>>>> server?
>>>>>>>>>>>> How can I do that?
>>>>>>>>>>>>
>>>>>>>>>>>> A lot of people have the same question. But I did not
>>> find
>>>>>>> correct
>>>>>>>>>>> answer.
>>>>>>>>>>>> Thank a lot for support.
>>>>>>>>>>>>
--
Daniel Iancu
Java Developer,Web Components Romania
1&1 Internet Development srl.
18 Mircea Eliade St
Sect 1, Bucharest
RO Bucharest, 012015
www.1and1.ro
Phone:+40-031-223-9081
Email:daniel.iancu@1and1.ro
IM:diancu@united.domain
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
As you see, Region servers and master reigsted on 127.0.0.1, so clients
can't reach them.
Why it is i can't say. Only three things you can check:
1. /etc/hosts, where you hostname should'n be 127.0.0.1
2. hbas-site.xml in conf dir (try to specify ip address instead of hostname)
3. check you dns.
2010/12/23 King JKing <be...@gmail.com>
> HBase tree in ZooKeeper is rooted at /hbase
> Cluster up? true
> Master address: 127.0.0.1:60000
> Region server holding ROOT: 127.0.0.1:15587
> Region servers:
> - 127.0.0.1:15587
> Quorum Server Statistics:
> - 10.30.12.182:2181
> Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
> Clients:
> /10.30.12.182:54064[1](queued=0,recved=28,sent=28)
> /10.30.12.182:6253[1](queued=0,recved=10,sent=10)
> /10.30.12.182:6254[0](queued=0,recved=1,sent=0)
> /127.0.0.1:35308[1](queued=0,recved=17,sent=17)
> /10.30.12.182:54066[1](queued=0,recved=16,sent=16)
> /127.0.0.1:35318[1](queued=0,recved=13,sent=13)
>
> Latency min/avg/max: 0/1/22
> Received: 98
> Sent: 97
> Outstanding: 0
> Zxid: 0xe
> Mode: standalone
>
> Node count: 10
>
>
>
> On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
>
> > Wey strange. Can you post
> > http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp> (or
> > zk_dump from hbase shell)
> >
> > 2010/12/23 King JKing <be...@gmail.com>
> >
> > > No. When I add your code to hbase-site.xml and restart HBase Server.
> When
> > I
> > > run HBase Client, client hang up.
> > >
> > > Here is some information on HBase server
> > >
> > > [root@ME-182 conf]# netstat -an|grep 60000
> > > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> > > LISTEN
> > > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000
> > > ESTABLISHED
> > > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965
> > > ESTABLISHED
> > >
> > >
> > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <oc...@gmail.com>
> > > wrote:
> > >
> > > > Are the error lines the same as above? Can you post error here?
> > > >
> > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369could
> > > not
> > > > be
> > > >
> > > > 2010/12/23 King JKing <be...@gmail.com>
> > > >
> > > > > I had already config this parameter. But still error
> > > > >
> > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <
> octo47@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Looks like in zookeeper stored wrong region server address. Try
> to
> > > > > specify
> > > > > > real address in hbase config
> > > > > > (hbase-site.xml in conf dir of hbase installation).
> > > > > >
> > > > > > something like this.
> > > > > >
> > > > > > <property>
> > > > > > <name>hbase.zookeeper.quorum</name>
> > > > > > <value>you_host_or_ip</value>
> > > > > > <description>Comma separated list of servers in the ZooKeeper
> > > > Quorum.
> > > > > > </description>
> > > > > > </property>
> > > > > >
> > > > > >
> > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > >
> > > > > > > HBase and client are on the different machine
> > > > > > >
> > > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> > > octo47@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Are HBase and client on the same machine?
> > > > > > > >
> > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > >
> > > > > > > > > But still error...
> > > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> > > 127.0.0.1:45369
> > > > > could
> > > > > > > > not
> > > > > > > > > be
> > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> > > 127.0.0.1:45369
> > > > > could
> > > > > > > > not
> > > > > > > > > be
> > > > > > > > > reached after 1 tries, giving up.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > > > > octo47@gmail.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > place hbase-site.xml with two parameters in you
> classpath.
> > > > > > > > > >
> > > > > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter
> is
> > > > > > optional)
> > > > > > > > > >
> > > > > > > > > > another way, create Configuration and set this
> parameters
> > > from
> > > > > any
> > > > > > > > > sources
> > > > > > > > > > you like
> > > > > > > > > > (i use for example jndi in some of my apps).
> > > > > > > > > >
> > > > > > > > > > c = HBaseConfiguration.create();
> > > > > > > > > > c.set(propname, propvalue);
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > > >
> > > > > > > > > > > Dear all,
> > > > > > > > > > >
> > > > > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > > > > >
> > > > > > > > > > > Can HBase Client (from another machine) connect to this
> > > HBase
> > > > > > > server?
> > > > > > > > > > > How can I do that?
> > > > > > > > > > >
> > > > > > > > > > > A lot of people have the same question. But I did not
> > find
> > > > > > correct
> > > > > > > > > > answer.
> > > > > > > > > > >
> > > > > > > > > > > Thank a lot for support.
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
HBase tree in ZooKeeper is rooted at /hbase
Cluster up? true
Master address: 127.0.0.1:60000
Region server holding ROOT: 127.0.0.1:15587
Region servers:
- 127.0.0.1:15587
Quorum Server Statistics:
- 10.30.12.182:2181
Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
Clients:
/10.30.12.182:54064[1](queued=0,recved=28,sent=28)
/10.30.12.182:6253[1](queued=0,recved=10,sent=10)
/10.30.12.182:6254[0](queued=0,recved=1,sent=0)
/127.0.0.1:35308[1](queued=0,recved=17,sent=17)
/10.30.12.182:54066[1](queued=0,recved=16,sent=16)
/127.0.0.1:35318[1](queued=0,recved=13,sent=13)
Latency min/avg/max: 0/1/22
Received: 98
Sent: 97
Outstanding: 0
Zxid: 0xe
Mode: standalone
Node count: 10
On Thu, Dec 23, 2010 at 3:35 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> Wey strange. Can you post
> http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp> (or
> zk_dump from hbase shell)
>
> 2010/12/23 King JKing <be...@gmail.com>
>
> > No. When I add your code to hbase-site.xml and restart HBase Server. When
> I
> > run HBase Client, client hang up.
> >
> > Here is some information on HBase server
> >
> > [root@ME-182 conf]# netstat -an|grep 60000
> > tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> > LISTEN
> > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000
> > ESTABLISHED
> > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965
> > ESTABLISHED
> >
> >
> > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <oc...@gmail.com>
> > wrote:
> >
> > > Are the error lines the same as above? Can you post error here?
> > >
> > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could
> > not
> > > be
> > >
> > > 2010/12/23 King JKing <be...@gmail.com>
> > >
> > > > I had already config this parameter. But still error
> > > >
> > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <oc...@gmail.com>
> > > > wrote:
> > > >
> > > > > Looks like in zookeeper stored wrong region server address. Try to
> > > > specify
> > > > > real address in hbase config
> > > > > (hbase-site.xml in conf dir of hbase installation).
> > > > >
> > > > > something like this.
> > > > >
> > > > > <property>
> > > > > <name>hbase.zookeeper.quorum</name>
> > > > > <value>you_host_or_ip</value>
> > > > > <description>Comma separated list of servers in the ZooKeeper
> > > Quorum.
> > > > > </description>
> > > > > </property>
> > > > >
> > > > >
> > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > >
> > > > > > HBase and client are on the different machine
> > > > > >
> > > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> > octo47@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Are HBase and client on the same machine?
> > > > > > >
> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > >
> > > > > > > > But still error...
> > > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> > 127.0.0.1:45369
> > > > could
> > > > > > > not
> > > > > > > > be
> > > > > > > > reached after 1 tries, giving up.
> > > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> > 127.0.0.1:45369
> > > > could
> > > > > > > not
> > > > > > > > be
> > > > > > > > reached after 1 tries, giving up.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > > > octo47@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > place hbase-site.xml with two parameters in you classpath.
> > > > > > > > >
> > > > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is
> > > > > optional)
> > > > > > > > >
> > > > > > > > > another way, create Configuration and set this parameters
> > from
> > > > any
> > > > > > > > sources
> > > > > > > > > you like
> > > > > > > > > (i use for example jndi in some of my apps).
> > > > > > > > >
> > > > > > > > > c = HBaseConfiguration.create();
> > > > > > > > > c.set(propname, propvalue);
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > > >
> > > > > > > > > > Dear all,
> > > > > > > > > >
> > > > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > > > >
> > > > > > > > > > Can HBase Client (from another machine) connect to this
> > HBase
> > > > > > server?
> > > > > > > > > > How can I do that?
> > > > > > > > > >
> > > > > > > > > > A lot of people have the same question. But I did not
> find
> > > > > correct
> > > > > > > > > answer.
> > > > > > > > > >
> > > > > > > > > > Thank a lot for support.
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
Wey strange. Can you post
http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp> (or
zk_dump from hbase shell)
2010/12/23 King JKing <be...@gmail.com>
> No. When I add your code to hbase-site.xml and restart HBase Server. When I
> run HBase Client, client hang up.
>
> Here is some information on HBase server
>
> [root@ME-182 conf]# netstat -an|grep 60000
> tcp 0 0 ::ffff:127.0.0.1:60000 :::*
> LISTEN
> tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000
> ESTABLISHED
> tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965
> ESTABLISHED
>
>
> On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
>
> > Are the error lines the same as above? Can you post error here?
> >
> > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could
> not
> > be
> >
> > 2010/12/23 King JKing <be...@gmail.com>
> >
> > > I had already config this parameter. But still error
> > >
> > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <oc...@gmail.com>
> > > wrote:
> > >
> > > > Looks like in zookeeper stored wrong region server address. Try to
> > > specify
> > > > real address in hbase config
> > > > (hbase-site.xml in conf dir of hbase installation).
> > > >
> > > > something like this.
> > > >
> > > > <property>
> > > > <name>hbase.zookeeper.quorum</name>
> > > > <value>you_host_or_ip</value>
> > > > <description>Comma separated list of servers in the ZooKeeper
> > Quorum.
> > > > </description>
> > > > </property>
> > > >
> > > >
> > > > 2010/12/23 King JKing <be...@gmail.com>
> > > >
> > > > > HBase and client are on the different machine
> > > > >
> > > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <
> octo47@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Are HBase and client on the same machine?
> > > > > >
> > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > >
> > > > > > > But still error...
> > > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /
> 127.0.0.1:45369
> > > could
> > > > > > not
> > > > > > > be
> > > > > > > reached after 1 tries, giving up.
> > > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /
> 127.0.0.1:45369
> > > could
> > > > > > not
> > > > > > > be
> > > > > > > reached after 1 tries, giving up.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > > octo47@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > place hbase-site.xml with two parameters in you classpath.
> > > > > > > >
> > > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is
> > > > optional)
> > > > > > > >
> > > > > > > > another way, create Configuration and set this parameters
> from
> > > any
> > > > > > > sources
> > > > > > > > you like
> > > > > > > > (i use for example jndi in some of my apps).
> > > > > > > >
> > > > > > > > c = HBaseConfiguration.create();
> > > > > > > > c.set(propname, propvalue);
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > > >
> > > > > > > > > Dear all,
> > > > > > > > >
> > > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > > >
> > > > > > > > > Can HBase Client (from another machine) connect to this
> HBase
> > > > > server?
> > > > > > > > > How can I do that?
> > > > > > > > >
> > > > > > > > > A lot of people have the same question. But I did not find
> > > > correct
> > > > > > > > answer.
> > > > > > > > >
> > > > > > > > > Thank a lot for support.
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
Here is my full error log
10/12/23 15:34:44 INFO zookeeper.ZooKeeperWrapper: Reconnecting to zookeeper
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:zookeeper.version=3.2.2-888565, built on 12/08/2009 21:51 GMT
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:host.name
=my-laptop
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:java.version=1.6.0_18
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:java.vendor=Sun Microsystems Inc.
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:java.home=/usr/lib/jvm/java-6-openjdk/jre
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:java.library.path=/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:java.io.tmpdir=/tmp
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:java.compiler=<NA>
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:os.version=2.6.32-24-generic
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:user.name
=root
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:user.home=/root
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client
environment:user.dir=/code/svn_java/Code50/Primess/System
10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Initiating client connection,
connectString=10.30.12.182:2181 sessionTimeout=60000
watcher=org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper@105b99f
10/12/23 15:34:44 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchReset
is false
10/12/23 15:34:44 INFO zookeeper.ClientCnxn: Attempting connection to server
/10.30.12.182:2181
10/12/23 15:34:44 INFO zookeeper.ClientCnxn: Priming connection to
java.nio.channels.SocketChannel[connected local=/10.199.25.23:48281 remote=/
10.30.12.182:2181]
10/12/23 15:34:44 INFO zookeeper.ClientCnxn: Server connection successful
10/12/23 15:34:45 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:34:46 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:34:47 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:34:48 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:34:50 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:34:52 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:34:56 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:35:00 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
10/12/23 15:35:08 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be
reached after 1 tries, giving up.
On Thu, Dec 23, 2010 at 3:24 PM, King JKing <be...@gmail.com> wrote:
> No. When I add your code to hbase-site.xml and restart HBase Server. When I
> run HBase Client, client hang up.
>
> Here is some information on HBase server
>
> [root@ME-182 conf]# netstat -an|grep 60000
> tcp 0 0 ::ffff:127.0.0.1:60000
> :::* LISTEN
> tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000
> ESTABLISHED
> tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965
> ESTABLISHED
>
>
>
> On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <oc...@gmail.com>wrote:
>
>> Are the error lines the same as above? Can you post error here?
>>
>> 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not
>> be
>>
>> 2010/12/23 King JKing <be...@gmail.com>
>>
>> > I had already config this parameter. But still error
>> >
>> > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <oc...@gmail.com>
>> > wrote:
>> >
>> > > Looks like in zookeeper stored wrong region server address. Try to
>> > specify
>> > > real address in hbase config
>> > > (hbase-site.xml in conf dir of hbase installation).
>> > >
>> > > something like this.
>> > >
>> > > <property>
>> > > <name>hbase.zookeeper.quorum</name>
>> > > <value>you_host_or_ip</value>
>> > > <description>Comma separated list of servers in the ZooKeeper
>> Quorum.
>> > > </description>
>> > > </property>
>> > >
>> > >
>> > > 2010/12/23 King JKing <be...@gmail.com>
>> > >
>> > > > HBase and client are on the different machine
>> > > >
>> > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <octo47@gmail.com
>> >
>> > > > wrote:
>> > > >
>> > > > > Are HBase and client on the same machine?
>> > > > >
>> > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > >
>> > > > > > But still error...
>> > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
>> > could
>> > > > > not
>> > > > > > be
>> > > > > > reached after 1 tries, giving up.
>> > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
>> > could
>> > > > > not
>> > > > > > be
>> > > > > > reached after 1 tries, giving up.
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
>> > octo47@gmail.com>
>> > > > > > wrote:
>> > > > > >
>> > > > > > > place hbase-site.xml with two parameters in you classpath.
>> > > > > > >
>> > > > > > > hbase.zookeeper.quorum=your host
>> > > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is
>> > > optional)
>> > > > > > >
>> > > > > > > another way, create Configuration and set this parameters
>> from
>> > any
>> > > > > > sources
>> > > > > > > you like
>> > > > > > > (i use for example jndi in some of my apps).
>> > > > > > >
>> > > > > > > c = HBaseConfiguration.create();
>> > > > > > > c.set(propname, propvalue);
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
>> > > > > > >
>> > > > > > > > Dear all,
>> > > > > > > >
>> > > > > > > > I set up my HBase server in standalone mode.
>> > > > > > > >
>> > > > > > > > Can HBase Client (from another machine) connect to this
>> HBase
>> > > > server?
>> > > > > > > > How can I do that?
>> > > > > > > >
>> > > > > > > > A lot of people have the same question. But I did not find
>> > > correct
>> > > > > > > answer.
>> > > > > > > >
>> > > > > > > > Thank a lot for support.
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
No. When I add your code to hbase-site.xml and restart HBase Server. When I
run HBase Client, client hang up.
Here is some information on HBase server
[root@ME-182 conf]# netstat -an|grep 60000
tcp 0 0 ::ffff:127.0.0.1:60000 :::*
LISTEN
tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000
ESTABLISHED
tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965
ESTABLISHED
On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> Are the error lines the same as above? Can you post error here?
>
> 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not
> be
>
> 2010/12/23 King JKing <be...@gmail.com>
>
> > I had already config this parameter. But still error
> >
> > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <oc...@gmail.com>
> > wrote:
> >
> > > Looks like in zookeeper stored wrong region server address. Try to
> > specify
> > > real address in hbase config
> > > (hbase-site.xml in conf dir of hbase installation).
> > >
> > > something like this.
> > >
> > > <property>
> > > <name>hbase.zookeeper.quorum</name>
> > > <value>you_host_or_ip</value>
> > > <description>Comma separated list of servers in the ZooKeeper
> Quorum.
> > > </description>
> > > </property>
> > >
> > >
> > > 2010/12/23 King JKing <be...@gmail.com>
> > >
> > > > HBase and client are on the different machine
> > > >
> > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <oc...@gmail.com>
> > > > wrote:
> > > >
> > > > > Are HBase and client on the same machine?
> > > > >
> > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > >
> > > > > > But still error...
> > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
> > could
> > > > > not
> > > > > > be
> > > > > > reached after 1 tries, giving up.
> > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
> > could
> > > > > not
> > > > > > be
> > > > > > reached after 1 tries, giving up.
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> > octo47@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > place hbase-site.xml with two parameters in you classpath.
> > > > > > >
> > > > > > > hbase.zookeeper.quorum=your host
> > > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is
> > > optional)
> > > > > > >
> > > > > > > another way, create Configuration and set this parameters from
> > any
> > > > > > sources
> > > > > > > you like
> > > > > > > (i use for example jndi in some of my apps).
> > > > > > >
> > > > > > > c = HBaseConfiguration.create();
> > > > > > > c.set(propname, propvalue);
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > > >
> > > > > > > > Dear all,
> > > > > > > >
> > > > > > > > I set up my HBase server in standalone mode.
> > > > > > > >
> > > > > > > > Can HBase Client (from another machine) connect to this HBase
> > > > server?
> > > > > > > > How can I do that?
> > > > > > > >
> > > > > > > > A lot of people have the same question. But I did not find
> > > correct
> > > > > > > answer.
> > > > > > > >
> > > > > > > > Thank a lot for support.
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
Are the error lines the same as above? Can you post error here?
10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not be
2010/12/23 King JKing <be...@gmail.com>
> I had already config this parameter. But still error
>
> On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
>
> > Looks like in zookeeper stored wrong region server address. Try to
> specify
> > real address in hbase config
> > (hbase-site.xml in conf dir of hbase installation).
> >
> > something like this.
> >
> > <property>
> > <name>hbase.zookeeper.quorum</name>
> > <value>you_host_or_ip</value>
> > <description>Comma separated list of servers in the ZooKeeper Quorum.
> > </description>
> > </property>
> >
> >
> > 2010/12/23 King JKing <be...@gmail.com>
> >
> > > HBase and client are on the different machine
> > >
> > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <oc...@gmail.com>
> > > wrote:
> > >
> > > > Are HBase and client on the same machine?
> > > >
> > > > 2010/12/23 King JKing <be...@gmail.com>
> > > >
> > > > > But still error...
> > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
> could
> > > > not
> > > > > be
> > > > > reached after 1 tries, giving up.
> > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369
> could
> > > > not
> > > > > be
> > > > > reached after 1 tries, giving up.
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <
> octo47@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > place hbase-site.xml with two parameters in you classpath.
> > > > > >
> > > > > > hbase.zookeeper.quorum=your host
> > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is
> > optional)
> > > > > >
> > > > > > another way, create Configuration and set this parameters from
> any
> > > > > sources
> > > > > > you like
> > > > > > (i use for example jndi in some of my apps).
> > > > > >
> > > > > > c = HBaseConfiguration.create();
> > > > > > c.set(propname, propvalue);
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > > >
> > > > > > > Dear all,
> > > > > > >
> > > > > > > I set up my HBase server in standalone mode.
> > > > > > >
> > > > > > > Can HBase Client (from another machine) connect to this HBase
> > > server?
> > > > > > > How can I do that?
> > > > > > >
> > > > > > > A lot of people have the same question. But I did not find
> > correct
> > > > > > answer.
> > > > > > >
> > > > > > > Thank a lot for support.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
I had already config this parameter. But still error
On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> Looks like in zookeeper stored wrong region server address. Try to specify
> real address in hbase config
> (hbase-site.xml in conf dir of hbase installation).
>
> something like this.
>
> <property>
> <name>hbase.zookeeper.quorum</name>
> <value>you_host_or_ip</value>
> <description>Comma separated list of servers in the ZooKeeper Quorum.
> </description>
> </property>
>
>
> 2010/12/23 King JKing <be...@gmail.com>
>
> > HBase and client are on the different machine
> >
> > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <oc...@gmail.com>
> > wrote:
> >
> > > Are HBase and client on the same machine?
> > >
> > > 2010/12/23 King JKing <be...@gmail.com>
> > >
> > > > But still error...
> > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369could
> > > not
> > > > be
> > > > reached after 1 tries, giving up.
> > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369could
> > > not
> > > > be
> > > > reached after 1 tries, giving up.
> > > >
> > > >
> > > >
> > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <oc...@gmail.com>
> > > > wrote:
> > > >
> > > > > place hbase-site.xml with two parameters in you classpath.
> > > > >
> > > > > hbase.zookeeper.quorum=your host
> > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is
> optional)
> > > > >
> > > > > another way, create Configuration and set this parameters from any
> > > > sources
> > > > > you like
> > > > > (i use for example jndi in some of my apps).
> > > > >
> > > > > c = HBaseConfiguration.create();
> > > > > c.set(propname, propvalue);
> > > > >
> > > > >
> > > > >
> > > > > 2010/12/23 King JKing <be...@gmail.com>
> > > > >
> > > > > > Dear all,
> > > > > >
> > > > > > I set up my HBase server in standalone mode.
> > > > > >
> > > > > > Can HBase Client (from another machine) connect to this HBase
> > server?
> > > > > > How can I do that?
> > > > > >
> > > > > > A lot of people have the same question. But I did not find
> correct
> > > > > answer.
> > > > > >
> > > > > > Thank a lot for support.
> > > > > >
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
Looks like in zookeeper stored wrong region server address. Try to specify
real address in hbase config
(hbase-site.xml in conf dir of hbase installation).
something like this.
<property>
<name>hbase.zookeeper.quorum</name>
<value>you_host_or_ip</value>
<description>Comma separated list of servers in the ZooKeeper Quorum.
</description>
</property>
2010/12/23 King JKing <be...@gmail.com>
> HBase and client are on the different machine
>
> On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
>
> > Are HBase and client on the same machine?
> >
> > 2010/12/23 King JKing <be...@gmail.com>
> >
> > > But still error...
> > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could
> > not
> > > be
> > > reached after 1 tries, giving up.
> > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could
> > not
> > > be
> > > reached after 1 tries, giving up.
> > >
> > >
> > >
> > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <oc...@gmail.com>
> > > wrote:
> > >
> > > > place hbase-site.xml with two parameters in you classpath.
> > > >
> > > > hbase.zookeeper.quorum=your host
> > > > hbase.zookeeper.property.clientPort=2181 (this parameter is optional)
> > > >
> > > > another way, create Configuration and set this parameters from any
> > > sources
> > > > you like
> > > > (i use for example jndi in some of my apps).
> > > >
> > > > c = HBaseConfiguration.create();
> > > > c.set(propname, propvalue);
> > > >
> > > >
> > > >
> > > > 2010/12/23 King JKing <be...@gmail.com>
> > > >
> > > > > Dear all,
> > > > >
> > > > > I set up my HBase server in standalone mode.
> > > > >
> > > > > Can HBase Client (from another machine) connect to this HBase
> server?
> > > > > How can I do that?
> > > > >
> > > > > A lot of people have the same question. But I did not find correct
> > > > answer.
> > > > >
> > > > > Thank a lot for support.
> > > > >
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
HBase and client are on the different machine
On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> Are HBase and client on the same machine?
>
> 2010/12/23 King JKing <be...@gmail.com>
>
> > But still error...
> > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could
> not
> > be
> > reached after 1 tries, giving up.
> > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could
> not
> > be
> > reached after 1 tries, giving up.
> >
> >
> >
> > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <oc...@gmail.com>
> > wrote:
> >
> > > place hbase-site.xml with two parameters in you classpath.
> > >
> > > hbase.zookeeper.quorum=your host
> > > hbase.zookeeper.property.clientPort=2181 (this parameter is optional)
> > >
> > > another way, create Configuration and set this parameters from any
> > sources
> > > you like
> > > (i use for example jndi in some of my apps).
> > >
> > > c = HBaseConfiguration.create();
> > > c.set(propname, propvalue);
> > >
> > >
> > >
> > > 2010/12/23 King JKing <be...@gmail.com>
> > >
> > > > Dear all,
> > > >
> > > > I set up my HBase server in standalone mode.
> > > >
> > > > Can HBase Client (from another machine) connect to this HBase server?
> > > > How can I do that?
> > > >
> > > > A lot of people have the same question. But I did not find correct
> > > answer.
> > > >
> > > > Thank a lot for support.
> > > >
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
Are HBase and client on the same machine?
2010/12/23 King JKing <be...@gmail.com>
> But still error...
> 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not
> be
> reached after 1 tries, giving up.
> 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not
> be
> reached after 1 tries, giving up.
>
>
>
> On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <oc...@gmail.com>
> wrote:
>
> > place hbase-site.xml with two parameters in you classpath.
> >
> > hbase.zookeeper.quorum=your host
> > hbase.zookeeper.property.clientPort=2181 (this parameter is optional)
> >
> > another way, create Configuration and set this parameters from any
> sources
> > you like
> > (i use for example jndi in some of my apps).
> >
> > c = HBaseConfiguration.create();
> > c.set(propname, propvalue);
> >
> >
> >
> > 2010/12/23 King JKing <be...@gmail.com>
> >
> > > Dear all,
> > >
> > > I set up my HBase server in standalone mode.
> > >
> > > Can HBase Client (from another machine) connect to this HBase server?
> > > How can I do that?
> > >
> > > A lot of people have the same question. But I did not find correct
> > answer.
> > >
> > > Thank a lot for support.
> > >
> >
>
Re: HBase Client connect to remote HBase
Posted by King JKing <be...@gmail.com>.
But still error...
10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not be
reached after 1 tries, giving up.
10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not be
reached after 1 tries, giving up.
On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev <oc...@gmail.com> wrote:
> place hbase-site.xml with two parameters in you classpath.
>
> hbase.zookeeper.quorum=your host
> hbase.zookeeper.property.clientPort=2181 (this parameter is optional)
>
> another way, create Configuration and set this parameters from any sources
> you like
> (i use for example jndi in some of my apps).
>
> c = HBaseConfiguration.create();
> c.set(propname, propvalue);
>
>
>
> 2010/12/23 King JKing <be...@gmail.com>
>
> > Dear all,
> >
> > I set up my HBase server in standalone mode.
> >
> > Can HBase Client (from another machine) connect to this HBase server?
> > How can I do that?
> >
> > A lot of people have the same question. But I did not find correct
> answer.
> >
> > Thank a lot for support.
> >
>
Re: HBase Client connect to remote HBase
Posted by Andrey Stepachev <oc...@gmail.com>.
place hbase-site.xml with two parameters in you classpath.
hbase.zookeeper.quorum=your host
hbase.zookeeper.property.clientPort=2181 (this parameter is optional)
another way, create Configuration and set this parameters from any sources
you like
(i use for example jndi in some of my apps).
c = HBaseConfiguration.create();
c.set(propname, propvalue);
2010/12/23 King JKing <be...@gmail.com>
> Dear all,
>
> I set up my HBase server in standalone mode.
>
> Can HBase Client (from another machine) connect to this HBase server?
> How can I do that?
>
> A lot of people have the same question. But I did not find correct answer.
>
> Thank a lot for support.
>