Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> HBase Java client - unknown host: localhost.localdomain


Copy link to this message
-
Re: HBase Java client - unknown host: localhost.localdomain
Guys,

I think I got a bit further, I think what happened is:

1. my Hbase client (remote machine) is looking for zookeeper first. It
reads local hbase-site.xml, and finds the zookeeper on the cloudera vm, it
then locates Hbase master no problem.

2. it gets to Hbase master, next step it tries to locate the regions for
the specific HBase table I am asking for, in my case, it's 's1'. It finds
-ROOT- first,

locateRegionInMeta parentTable=-ROOT-,
metaLocation={region=-ROOT-,,0.70236052, hostname=localhost.localdomain,
port=60020} table,

So the problem I guess is that, in hbase, the metadata is pointing to
localhost.localdomain which is correct according to the hbase-site.xml on
my cloudera vm. But My HBase client remotely, of coz, has no idea what is
localhost.localdomain.

I think I need to change the hbase-site.xml in my cloudera vm to point to
the IP address instead of localhost.localdomain. But the question now is,
how do I update the metadata in -ROOT- from localhost to ${IP}? Tried flush
'-ROOT-', didn't work.

hbase(main):002:0> scan '-ROOT-'
ROW                            COLUMN+CELL

 .META.,,1                     column=info:regioninfo,
timestamp=1376375498677, value={NAME => '.META.,,1', STARTKEY
                                => '', ENDKEY => '', ENCODED =>
1028785192,}
 .META.,,1                     column=info:server, timestamp=1377482563657,
value=localhost.localdomain:60020
 .META.,,1                     column=info:serverstartcode,
timestamp=1377482563657, value=1377482552354
 .META.,,1                     column=info:v, timestamp=1376375498677,
value=\x00\x00
1 row(s) in 0.1450 seconds

Shengjie

On 26 August 2013 01:23, Shengjie Min <[EMAIL PROTECTED]> wrote:

> Hi Kevin,
>
> Can you be a bit more specific? I need to change my /etc/hosts on my
> Cloudera vm? It is just like this now:
>
> 127.0.0.1   localhost.localdomain   localhost
>
> What you suggest me to do here?
>
> Thanks,
> Shengjie
>
>
> On 26 August 2013 00:59, Kevin O'dell <[EMAIL PROTECTED]> wrote:
>
>> Shengjie,
>>
>>   Looks like you are binding to localhost on your services. Please make
>> sure you correct it so you bind on the interface for zk.
>> On Aug 25, 2013 10:32 AM, "Shengjie Min" <[EMAIL PROTECTED]> wrote:
>>
>> > Sure, Kevin,
>> >
>> > http://imgur.com/SQ3Zao9
>> >
>> > Shengjie
>> >
>> >
>> > On 25 August 2013 22:22, Kevin O'dell <[EMAIL PROTECTED]> wrote:
>> >
>> > > Shengjie,
>> > >
>> > >   Good news on being able to connect to the ui from the client. Can
>> you
>> > > post a screen shot on imgur?
>> > > On Aug 25, 2013 10:12 AM, "Jean-Marc Spaggiari" <
>> [EMAIL PROTECTED]
>> > >
>> > > wrote:
>> > >
>> > > > Can you share your client code? Or at least the section where you do
>> > the
>> > > > connection?
>> > > >
>> > > > Also, have you tried to run the same code from inside the VM?
>> > > >
>> > > > JM
>> > > >
>> > > > 2013/8/25 Shengjie Min <[EMAIL PROTECTED]>
>> > > >
>> > > > > Hi Jean-Marc,
>> > > > >
>> > > > > Sorry about the screenshot, yes, my Hbase client is outside of my
>> VM.
>> > > > And I
>> > > > > can access WebUI from outside: http://cloudera:60010
>> > > > >
>> > > > > Shengjie
>> > > > >
>> > > > >
>> > > > > On 25 August 2013 21:43, Jean-Marc Spaggiari <
>> > [EMAIL PROTECTED]
>> > > > > >wrote:
>> > > > >
>> > > > > > I think you need to post the screenshot on an external website
>> and
>> > > send
>> > > > > the
>> > > > > > link here.
>> > > > > >
>> > > > > > So, you are trying to access your VM from outside of your VM? Or
>> > your
>> > > > > > client application is into the VM too?
>> > > > > >
>> > > > > > If you are outside of your VM, are you able to access the VM
>> from
>> > > > > outside?
>> > > > > >
>> > > > > > Like, are you able to access the WebUI from outside of the VM
>> with
>> > > > > > something like "http://cloudera:60010"?
>> > > > > >
>> > > > > > JM
>> > > > > >
>> > > > > > 2013/8/25 Shengjie Min <[EMAIL PROTECTED]>
>> > > > > >
>> > > > > > >
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB