hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From King JKing <beuk...@gmail.com>
Subject Re: HBase Client connect to remote HBase
Date Thu, 23 Dec 2010 09:17:38 GMT
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 <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 <beuking@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 <beuking@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 <beuking@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 <beuking@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 <beuking@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 <beuking@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.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message