You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Mark <st...@gmail.com> on 2011/10/02 19:19:23 UTC

HBase Hush Application

I am trying to run the HBase URL application: 
https://github.com/larsgeorge/hbase-book on my local machine in 
psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving 
the following error:

...
INFO [main] (ZooKeeper.java:373) - Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181
INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x132c59cf1100004, negotiated timeout = 40000
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
     at java.lang.String.substring(String.java:1937)
     at org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
     at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
     at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
     at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
     at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
     at com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
     at com.hbasebook.hush.HushMain.main(HushMain.java:57)



When I type JPS I see /HMaster/ however I do not see any mention of 
/Zookeeper/. Is this to be expected? Is the above error I am receiving 
due to a misconfiguration of zookeeper or is it something completely 
unrelated? Is there something wrong with my hostname? Any ideas why I am 
receiving this error

Any help would be greatly appreciated. Thanks



Re: HBase Hush Application

Posted by Mark <st...@gmail.com>.
8619 JobTracker
8563 SecondaryNameNode
8410 NameNode
8699 TaskTracker
8487 DataNode
9843 HMaster
9797 Jps


I don't see any references to Zookeeper nor do I see any errors in my 
hbase-mark-Marks-Mackbook-Pro.local.log.

So is this error related to Zookeeper? I see some debug info regarding 
Zookeeper in the logs though and it appears to be working.

2011-10-02 11:11:34,267 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign: regionserver:53449-0x132c5d55bdc0002 Attempting to transition node 1028785192/.META. from RS_ZK_REGION_OPENING to RS_ZK_REGION_OPENED
2011-10-02 11:11:34,274 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign: regionserver:53449-0x132c5d55bdc0002 Successfully transitioned node 1028785192 from RS_ZK_REGION_OPENING to RS_ZK_REGION_OPENED
2011-10-02 11:11:34,285 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign: master:53446-0x132c5d55bdc0000 Deleting any existing unassigned nodes


On 10/2/11 10:48 AM, Dejan Menges wrote:
> Can you list all services with jps? If I'm not wrong, ZooKeeper should be
> HQuorumServer, HMaster is separated one.
>
> Can you also tail -f $HBASE_HOME/logs/* to see if there is something that
> can point you to the problem?
>
> Regards,
> Dejo
>
> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>  wrote:
>
>> I am trying to run the HBase URL application:
>> https://github.com/larsgeorge/**hbase-book<https://github.com/larsgeorge/hbase-book>on my local machine in psuedo-distributed mode using the Cloudera  CDH3 but
>> I keep receiving the following error:
>>
>> ...
>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket connection
>> to server localhost/0:0:0:0:0:0:0:1:2181
>> INFO [main-SendThread(localhost:**2181)] (ClientCnxn.java:949) - Socket
>> connection established to localhost/0:0:0:0:0:0:0:1:**2181, initiating
>> session
>> INFO [main-SendThread(localhost:**2181)] (ClientCnxn.java:738) - Session
>> establishment complete on server localhost/0:0:0:0:0:0:0:1:**2181,
>> sessionid = 0x132c59cf1100004, negotiated timeout = 40000
>> Exception in thread "main" java.lang.**StringIndexOutOfBoundsExceptio**n:
>> String index out of range: -1
>>     at java.lang.String.substring(**String.java:1937)
>>     at org.apache.hadoop.hbase.**ServerName.parseHostname(**
>> ServerName.java:81)
>>     at org.apache.hadoop.hbase.**ServerName.<init>(ServerName.**java:63)
>>     at org.apache.hadoop.hbase.**MasterAddressTracker.**getMasterAddress(**
>> MasterAddressTracker.java:62)
>>     at org.apache.hadoop.hbase.**client.HConnectionManager$**
>> HConnectionImplementation.**getMaster(HConnectionManager.**java:568)
>>     at org.apache.hadoop.hbase.**client.HBaseAdmin.<init>(**
>> HBaseAdmin.java:94)
>>     at com.hbasebook.hush.schema.**SchemaManager.process(**
>> SchemaManager.java:126)
>>     at com.hbasebook.hush.HushMain.**main(HushMain.java:57)
>>
>>
>>
>> When I type JPS I see /HMaster/ however I do not see any mention of
>> /Zookeeper/. Is this to be expected? Is the above error I am receiving due
>> to a misconfiguration of zookeeper or is it something completely unrelated?
>> Is there something wrong with my hostname? Any ideas why I am receiving this
>> error
>>
>> Any help would be greatly appreciated. Thanks
>>
>>
>>

Re: HBase Hush Application

Posted by Dejan Menges <de...@gmail.com>.
Can you list all services with jps? If I'm not wrong, ZooKeeper should be
HQuorumServer, HMaster is separated one.

Can you also tail -f $HBASE_HOME/logs/* to see if there is something that
can point you to the problem?

Regards,
Dejo

On Sun, Oct 2, 2011 at 7:19 PM, Mark <st...@gmail.com> wrote:

> I am trying to run the HBase URL application:
> https://github.com/larsgeorge/**hbase-book<https://github.com/larsgeorge/hbase-book>on my local machine in psuedo-distributed mode using the Cloudera  CDH3 but
> I keep receiving the following error:
>
> ...
> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket connection
> to server localhost/0:0:0:0:0:0:0:1:2181
> INFO [main-SendThread(localhost:**2181)] (ClientCnxn.java:949) - Socket
> connection established to localhost/0:0:0:0:0:0:0:1:**2181, initiating
> session
> INFO [main-SendThread(localhost:**2181)] (ClientCnxn.java:738) - Session
> establishment complete on server localhost/0:0:0:0:0:0:0:1:**2181,
> sessionid = 0x132c59cf1100004, negotiated timeout = 40000
> Exception in thread "main" java.lang.**StringIndexOutOfBoundsExceptio**n:
> String index out of range: -1
>    at java.lang.String.substring(**String.java:1937)
>    at org.apache.hadoop.hbase.**ServerName.parseHostname(**
> ServerName.java:81)
>    at org.apache.hadoop.hbase.**ServerName.<init>(ServerName.**java:63)
>    at org.apache.hadoop.hbase.**MasterAddressTracker.**getMasterAddress(**
> MasterAddressTracker.java:62)
>    at org.apache.hadoop.hbase.**client.HConnectionManager$**
> HConnectionImplementation.**getMaster(HConnectionManager.**java:568)
>    at org.apache.hadoop.hbase.**client.HBaseAdmin.<init>(**
> HBaseAdmin.java:94)
>    at com.hbasebook.hush.schema.**SchemaManager.process(**
> SchemaManager.java:126)
>    at com.hbasebook.hush.HushMain.**main(HushMain.java:57)
>
>
>
> When I type JPS I see /HMaster/ however I do not see any mention of
> /Zookeeper/. Is this to be expected? Is the above error I am receiving due
> to a misconfiguration of zookeeper or is it something completely unrelated?
> Is there something wrong with my hostname? Any ideas why I am receiving this
> error
>
> Any help would be greatly appreciated. Thanks
>
>
>

Re: HBase Hush Application

Posted by Richipal <ri...@msn.com>.
I had a similar problem, I fixed it.
The reason for the problem was in my client code library I was referring a
different version of hadoop-core and hbase, and running a different version, I
changed my code libraries to have the same version as I was running and that
took care of the problem.


Re: HBase Hush Application

Posted by Michel Segel <mi...@hotmail.com>.
In your localhost file... Where do you have your machine name... Just a thought.

Sent from a remote device. Please excuse any typos...

Mike Segel

On Oct 2, 2011, at 1:17 PM, Mark <st...@gmail.com> wrote:

> Just the good ol default hosts file
> 
> ##
> # Host Database
> #
> # localhost is used to configure the loopback interface
> # when the system is booting.  Do not change this entry.
> ##
> 
> 127.0.0.1       localhost
> 255.255.255.255 broadcasthost
> ::1             localhost
> fe80::1%lo0     localhost
> 
> 
> 
> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>> Can you show your hosts file, particularly info on localhost. Of
>> course omit any sensitive info like public IP's or hostnames?
>> 
>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>  wrote:
>>> I am trying to run the HBase URL application:
>>> https://github.com/larsgeorge/hbase-book on my local machine in
>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>> following error:
>>> 
>>> ...
>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket connection
>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid =
>>> 0x132c59cf1100004, negotiated timeout = 40000
>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
>>> index out of range: -1
>>>    at java.lang.String.substring(String.java:1937)
>>>    at org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>    at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>    at
>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>    at
>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>    at
>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>    at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>> 
>>> 
>>> 
>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving due
>>> to a misconfiguration of zookeeper or is it something completely unrelated?
>>> Is there something wrong with my hostname? Any ideas why I am receiving this
>>> error
>>> 
>>> Any help would be greatly appreciated. Thanks
>>> 
>>> 
>>> 
>> 
>> 
> 

Re: Spaces disappear in HBase?

Posted by Andrew Purtell <ap...@apache.org>.
Keys and values must be base64 encoded if using the JSON or XML representations. It's documented in the XML schema at least. I thought elsewhere, but if not then I agree there should be a clear discussion about it.
In the body of a request or response using XML or JSON representation, the row, column, and value elements/attributes must be base64 encoded, and will be base64 encoded in a response.

If using binary representation (content-type or accept of application/octet-stream) then the raw bytes should be passed in and will be passed out.

If using protobufs representation (content-type or accept of application/x-protobuf), then the row, column, and value should be passed in to the builder as-is. 


In the request URI, the row or column should be URLencoded instead, because this is HTTP...


Best regards,


       - Andy

Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)


>________________________________
>From: Ben West <bw...@yahoo.com>
>To: "user@hbase.apache.org" <us...@hbase.apache.org>; Andrew Purtell <ap...@apache.org>
>Sent: Monday, October 10, 2011 6:04 AM
>Subject: Re: Spaces disappear in HBase?
>
>Thanks Andy!
>
>I do not see this in the wiki anywhere (http://wiki.apache.org/hadoop/Hbase/Stargate) - could we put it in? I'm not certain I know what exactly needs to be encoded: just values when you're inserting? How about the row names when you're scanning? (I've been having trouble with this.)
>
>-Ben
>
>
>----- Original Message -----
>From: Andrew Purtell <ap...@apache.org>
>To: "user@hbase.apache.org" <us...@hbase.apache.org>; Ben West <bw...@yahoo.com>
>Cc: 
>Sent: Monday, October 3, 2011 6:50 PM
>Subject: Re: Spaces disappear in HBase?
>
>Keys and values need to be base64 encoded in all non-binary representations, XML and JSON currently.
> 
>Best regards,
>
>
>   - Andy
>
>Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)
>
>
>>________________________________
>>From: Ben West <bw...@yahoo.com>
>>To: "user@hbase.apache.org" <us...@hbase.apache.org>
>>Sent: Sunday, October 2, 2011 1:15 PM
>>Subject: Spaces disappear in HBase?
>>
>>Hey all,
>>
>>I'm running the standalone HBase server (0.90.4) and REST client (version 0.0.2). When I POST data and then GET it back, the data is changed; particularly the spaces seem to be removed. Does anyone know what's going on?
>>
>>Here is a python script replicating my problem; I have a table named 'eipi' with a column family 'eipi':
>>
>>#!/usr/bin/python
>>
>>import sys
>>import urllib2
>>import simplejson
>>
>>
>>def getData(name, val):
>>cell = { 'Row': 
>>{'@key' : 'foo', 
>>'Cell': [{'@column': 'eipi:%s' % name, 
>>'$': val }] 
>>}
>>}
>>return simplejson.dumps(cell)
>>
>>def sendData(key, colName, colVal):
>>opener = urllib2.build_opener()
>>url = 'http://localhost:8081/eipi/%s/eipi:%s' % (key, colName)
>>print colVal
>>req = urllib2.Request(url, 
>>headers = { 'Content-Type': 'application/json' },
>>data = getData(colName, colVal))
>>f = opener.open(req)
>>f.read()
>>
>>def printData(key):
>>opener = urllib2.build_opener()
>>url = 'http://localhost:8081/eipi/%s' % key
>>req = urllib2.Request(url, 
>>headers = { 'Accept': 'application/json' })
>>f = opener.open(req)
>>parsed = simplejson.load(f)
>>print(parsed['Row'][0]['Cell'][0]['$'])
>>
>>sendData('test','eipi:test','some stuff')
>>printData('test')
>>
>>
>>result:
>>> python getHBase.py 
>>some stuff
>>somestuf
>>
>>(The space was removed, as well as a trailing 'f'...)
>>
>>Thanks!
>>-Ben
>>
>>
>>
>>
>
>
>

Re: Spaces disappear in HBase?

Posted by Ben West <bw...@yahoo.com>.
Thanks Andy!

I do not see this in the wiki anywhere (http://wiki.apache.org/hadoop/Hbase/Stargate) - could we put it in? I'm not certain I know what exactly needs to be encoded: just values when you're inserting? How about the row names when you're scanning? (I've been having trouble with this.)

-Ben


----- Original Message -----
From: Andrew Purtell <ap...@apache.org>
To: "user@hbase.apache.org" <us...@hbase.apache.org>; Ben West <bw...@yahoo.com>
Cc: 
Sent: Monday, October 3, 2011 6:50 PM
Subject: Re: Spaces disappear in HBase?

Keys and values need to be base64 encoded in all non-binary representations, XML and JSON currently.
 
Best regards,


   - Andy

Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)


>________________________________
>From: Ben West <bw...@yahoo.com>
>To: "user@hbase.apache.org" <us...@hbase.apache.org>
>Sent: Sunday, October 2, 2011 1:15 PM
>Subject: Spaces disappear in HBase?
>
>Hey all,
>
>I'm running the standalone HBase server (0.90.4) and REST client (version 0.0.2). When I POST data and then GET it back, the data is changed; particularly the spaces seem to be removed. Does anyone know what's going on?
>
>Here is a python script replicating my problem; I have a table named 'eipi' with a column family 'eipi':
>
>#!/usr/bin/python
>
>import sys
>import urllib2
>import simplejson
>
>
>def getData(name, val):
>cell = { 'Row': 
>{'@key' : 'foo', 
>'Cell': [{'@column': 'eipi:%s' % name, 
>'$': val }] 
>}
>}
>return simplejson.dumps(cell)
>
>def sendData(key, colName, colVal):
>opener = urllib2.build_opener()
>url = 'http://localhost:8081/eipi/%s/eipi:%s' % (key, colName)
>print colVal
>req = urllib2.Request(url, 
>headers = { 'Content-Type': 'application/json' },
>data = getData(colName, colVal))
>f = opener.open(req)
>f.read()
>
>def printData(key):
>opener = urllib2.build_opener()
>url = 'http://localhost:8081/eipi/%s' % key
>req = urllib2.Request(url, 
>headers = { 'Accept': 'application/json' })
>f = opener.open(req)
>parsed = simplejson.load(f)
>print(parsed['Row'][0]['Cell'][0]['$'])
>
>sendData('test','eipi:test','some stuff')
>printData('test')
>
>
>result:
>> python getHBase.py 
>some stuff
>somestuf
>
>(The space was removed, as well as a trailing 'f'...)
>
>Thanks!
>-Ben
>
>
>
>

Re: Spaces disappear in HBase?

Posted by Andrew Purtell <ap...@apache.org>.
Keys and values need to be base64 encoded in all non-binary representations, XML and JSON currently.
 
Best regards,


   - Andy

Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)


>________________________________
>From: Ben West <bw...@yahoo.com>
>To: "user@hbase.apache.org" <us...@hbase.apache.org>
>Sent: Sunday, October 2, 2011 1:15 PM
>Subject: Spaces disappear in HBase?
>
>Hey all,
>
>I'm running the standalone HBase server (0.90.4) and REST client (version 0.0.2). When I POST data and then GET it back, the data is changed; particularly the spaces seem to be removed. Does anyone know what's going on?
>
>Here is a python script replicating my problem; I have a table named 'eipi' with a column family 'eipi':
>
>#!/usr/bin/python
>
>import sys
>import urllib2
>import simplejson
>
>
>def getData(name, val):
>cell = { 'Row': 
>{'@key' : 'foo', 
>'Cell': [{'@column': 'eipi:%s' % name, 
>'$': val }] 
>}
>}
>return simplejson.dumps(cell)
>
>def sendData(key, colName, colVal):
>opener = urllib2.build_opener()
>url = 'http://localhost:8081/eipi/%s/eipi:%s' % (key, colName)
>print colVal
>req = urllib2.Request(url, 
>headers = { 'Content-Type': 'application/json' },
>data = getData(colName, colVal))
>f = opener.open(req)
>f.read()
>
>def printData(key):
>opener = urllib2.build_opener()
>url = 'http://localhost:8081/eipi/%s' % key
>req = urllib2.Request(url, 
>headers = { 'Accept': 'application/json' })
>f = opener.open(req)
>parsed = simplejson.load(f)
>print(parsed['Row'][0]['Cell'][0]['$'])
>
>sendData('test','eipi:test','some stuff')
>printData('test')
>
>
>result:
>> python getHBase.py 
>some stuff
>somestuf
>
>(The space was removed, as well as a trailing 'f'...)
>
>Thanks!
>-Ben
>
>
>
>

Spaces disappear in HBase?

Posted by Ben West <bw...@yahoo.com>.
Hey all,

I'm running the standalone HBase server (0.90.4) and REST client (version 0.0.2). When I POST data and then GET it back, the data is changed; particularly the spaces seem to be removed. Does anyone know what's going on?

Here is a python script replicating my problem; I have a table named 'eipi' with a column family 'eipi':

#!/usr/bin/python

import sys
import urllib2
import simplejson


def getData(name, val):
cell = { 'Row': 
{'@key' : 'foo', 
'Cell': [{'@column': 'eipi:%s' % name, 
'$': val }] 
}
}
return simplejson.dumps(cell)

def sendData(key, colName, colVal):
opener = urllib2.build_opener()
url = 'http://localhost:8081/eipi/%s/eipi:%s' % (key, colName)
print colVal
req = urllib2.Request(url, 
headers = { 'Content-Type': 'application/json' },
data = getData(colName, colVal))
f = opener.open(req)
f.read()

def printData(key):
opener = urllib2.build_opener()
url = 'http://localhost:8081/eipi/%s' % key
req = urllib2.Request(url, 
headers = { 'Accept': 'application/json' })
f = opener.open(req)
parsed = simplejson.load(f)
print(parsed['Row'][0]['Cell'][0]['$'])

sendData('test','eipi:test','some stuff')
printData('test')


result:
> python getHBase.py 
some stuff
somestuf

(The space was removed, as well as a trailing 'f'...)

Thanks!
-Ben


Re: HBase Hush Application

Posted by Dejan Menges <de...@gmail.com>.
Hi Mark,

I think Zijad was on the right track. As you are running pseudo-distributed
mode, all your services are on your local machine. You should use only one
IP address bind to only one hostname. If you are using localhost as a
hostname bound to the ::1, as it's visible from your first e-mail, then
comment out all other localhost bindings in /etc/hosts, both IPv4 and IPv6,
leaving only this one. Comment out also any loopback interface.

Restart first Hadoop, and monitor HADOOP_HOME/logs, to see if all bindings
are now only to localhost/::1. If everything looks fine and you can't see
anywhere in the log output any 192*/localhost or anything that's not
localhost/::1, then start HBase and monitor logs too for same thing.

The only additional thing I did (also talking about Mac, as I had exactly
the same problem) is that I removed Hadoop metadata before starting
anything, formated namenode, and then started services.

Let us know if this helps.

Regards,
Dejan

2011/10/2 Mark <st...@gmail.com>

> I've tracked it down to MasterAddressTracker returning my IP from the
> getData() method:
>
> 192.X.X.X:55929
>
>
> This is then passed to ServerName which tries to parse the server name but
> it doesn't contain a comma so it fails.  Any ideas?
>
>
>
> On 10/2/11 11:55 AM, Mark wrote:
>
>> No such luck with either of those attempts.
>>
>> FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit my
>> localhost:60010 and I see the following:
>>
>>
>> Attribute Name  Value   Description
>> HBase Version   0.90.3-cdh3u1, rUnknown         HBase version and svn
>> revision
>> HBase Compiled  Sat Oct 1 13:12:02 PDT 2011, rob        When HBase version
>> was compiled and by whom
>> Hadoop Version  0.20.2-cdh3u1, rbdafb1dbffd0d5f2fbc6ee022e1c8**df6500fd638
>>        Hadoop version and svn revision
>> Hadoop Compiled         Mon Jul 18 08:06:52 PDT 2011, jenkins   When
>> Hadoop version was compiled and by whom
>> HBase Root Directory    hdfs://localhost:9000/hbase     Location of HBase
>> home directory
>> Load average    2       Average number of regions per regionserver. Naive
>> computation.
>> Zookeeper Quorum        localhost:2181  Addresses of all registered ZK
>> servers. For more, seezk dump <http://localhost:60010/zk.jsp**>.
>>
>>
>>
>>
>>
>>
>>
>> On 10/2/11 11:29 AM, Zijad Purkovic wrote:
>>
>>> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
>>> one IPv6 (::1 localhost).
>>>
>>> On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic<zi...@gmail.com>>
>>>  wrote:
>>>
>>>> Try removing or commenting out the IPv6 addresses from your hosts file
>>>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>>>> when hosts file contains multiple IPs assigned to one hostname (in
>>>> your case localhost).
>>>>
>>>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<static.void.dev@gmail.com**>
>>>>  wrote:
>>>>
>>>>> Just the good ol default hosts file
>>>>>
>>>>> ##
>>>>> # Host Database
>>>>> #
>>>>> # localhost is used to configure the loopback interface
>>>>> # when the system is booting.  Do not change this entry.
>>>>> ##
>>>>>
>>>>> 127.0.0.1       localhost
>>>>> 255.255.255.255 broadcasthost
>>>>> ::1             localhost
>>>>> fe80::1%lo0     localhost
>>>>>
>>>>>
>>>>>
>>>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>>>
>>>>>> Can you show your hosts file, particularly info on localhost. Of
>>>>>> course omit any sensitive info like public IP's or hostnames?
>>>>>>
>>>>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<static.void.dev@gmail.com**>
>>>>>>  wrote:
>>>>>>
>>>>>>> I am trying to run the HBase URL application:
>>>>>>> https://github.com/larsgeorge/**hbase-book<https://github.com/larsgeorge/hbase-book> on my local machine in
>>>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving
>>>>>>> the
>>>>>>> following error:
>>>>>>>
>>>>>>> ...
>>>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>>>> connectString=localhost:2181 sessionTimeout=180000
>>>>>>> watcher=hconnection
>>>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>>>> connection
>>>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>>>> INFO [main-SendThread(localhost:**2181)] (ClientCnxn.java:949) -
>>>>>>> Socket
>>>>>>> connection established to localhost/0:0:0:0:0:0:0:1:**2181,
>>>>>>> initiating
>>>>>>> session
>>>>>>> INFO [main-SendThread(localhost:**2181)] (ClientCnxn.java:738) -
>>>>>>> Session
>>>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:**2181,
>>>>>>> sessionid =
>>>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>>>> Exception in thread "main" java.lang.**
>>>>>>> StringIndexOutOfBoundsExceptio**n:
>>>>>>> String
>>>>>>> index out of range: -1
>>>>>>>    at java.lang.String.substring(**String.java:1937)
>>>>>>>    at
>>>>>>> org.apache.hadoop.hbase.**ServerName.parseHostname(**
>>>>>>> ServerName.java:81)
>>>>>>>    at org.apache.hadoop.hbase.**ServerName.<init>(ServerName.**
>>>>>>> java:63)
>>>>>>>    at
>>>>>>>
>>>>>>> org.apache.hadoop.hbase.**MasterAddressTracker.**getMasterAddress(**
>>>>>>> MasterAddressTracker.java:62)
>>>>>>>    at
>>>>>>>
>>>>>>> org.apache.hadoop.hbase.**client.HConnectionManager$**
>>>>>>> HConnectionImplementation.**getMaster(HConnectionManager.**java:568)
>>>>>>>    at
>>>>>>> org.apache.hadoop.hbase.**client.HBaseAdmin.<init>(**
>>>>>>> HBaseAdmin.java:94)
>>>>>>>    at
>>>>>>> com.hbasebook.hush.schema.**SchemaManager.process(**
>>>>>>> SchemaManager.java:126)
>>>>>>>    at com.hbasebook.hush.HushMain.**main(HushMain.java:57)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>>>>> /Zookeeper/. Is this to be expected? Is the above error I am
>>>>>>> receiving
>>>>>>> due
>>>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>>>> unrelated?
>>>>>>> Is there something wrong with my hostname? Any ideas why I am
>>>>>>> receiving
>>>>>>> this
>>>>>>> error
>>>>>>>
>>>>>>> Any help would be greatly appreciated. Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>> --
>>>> Zijad Purković
>>>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>>>> 061/ 690 - 241
>>>>
>>>>
>>>

Re: HBase Hush Application

Posted by lars hofhansl <lh...@yahoo.com>.
Default is /tmp/hbase-<user>/zookeeper.
Only do this if this is a play cluster.



________________________________
From: Mark <st...@gmail.com>
To: user@hbase.apache.org
Sent: Sunday, October 2, 2011 1:34 PM
Subject: Re: HBase Hush Application

I haven't installed ZooKeeper locally so its using the one supplied by 
HMaster. Where is this data located?

On 10/2/11 1:33 PM, lars hofhansl wrote:
> I have some vague memory that I saw this once with stale data in ZK.
> If possible clean out your ZK data, and see of it works.
>
>
>
> ________________________________
> From: Mark<st...@gmail.com>
> To: user@hbase.apache.org
> Sent: Sunday, October 2, 2011 1:24 PM
> Subject: Re: HBase Hush Application
>
> I've tracked it down to MasterAddressTracker returning my IP from the
> getData() method:
>
> 192.X.X.X:55929
>
>
> This is then passed to ServerName which tries to parse the server name
> but it doesn't contain a comma so it fails.  Any ideas?
>
>
> On 10/2/11 11:55 AM, Mark wrote:
>> No such luck with either of those attempts.
>>
>> FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit
>> my localhost:60010 and I see the following:
>>
>>
>> Attribute Name     Value     Description
>> HBase Version     0.90.3-cdh3u1, rUnknown     HBase version and svn revision
>> HBase Compiled     Sat Oct 1 13:12:02 PDT 2011, rob     When HBase version
>> was compiled and by whom
>> Hadoop Version     0.20.2-cdh3u1,
>> rbdafb1dbffd0d5f2fbc6ee022e1c8df6500fd638     Hadoop version and svn
>> revision
>> Hadoop Compiled     Mon Jul 18 08:06:52 PDT 2011, jenkins     When Hadoop
>> version was compiled and by whom
>> HBase Root Directory     hdfs://localhost:9000/hbase     Location of HBase
>> home directory
>> Load average     2     Average number of regions per regionserver. Naive
>> computation.
>> Zookeeper Quorum     localhost:2181     Addresses of all registered ZK
>> servers. For more, seezk dump<http://localhost:60010/zk.jsp>.
>>
>>
>>
>>
>>
>>
>>
>> On 10/2/11 11:29 AM, Zijad Purkovic wrote:
>>> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
>>> one IPv6 (::1 localhost).
>>>
>>> On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic<zi...@gmail.com>   wrote:
>>>> Try removing or commenting out the IPv6 addresses from your hosts file
>>>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>>>> when hosts file contains multiple IPs assigned to one hostname (in
>>>> your case localhost).
>>>>
>>>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<st...@gmail.com>   wrote:
>>>>> Just the good ol default hosts file
>>>>>
>>>>> ##
>>>>> # Host Database
>>>>> #
>>>>> # localhost is used to configure the loopback interface
>>>>> # when the system is booting.  Do not change this entry.
>>>>> ##
>>>>>
>>>>> 127.0.0.1       localhost
>>>>> 255.255.255.255 broadcasthost
>>>>> ::1             localhost
>>>>> fe80::1%lo0     localhost
>>>>>
>>>>>
>>>>>
>>>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>>>> Can you show your hosts file, particularly info on localhost. Of
>>>>>> course omit any sensitive info like public IP's or hostnames?
>>>>>>
>>>>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>     wrote:
>>>>>>> I am trying to run the HBase URL application:
>>>>>>> https://github.com/larsgeorge/hbase-book  on my local machine in
>>>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>>>>>> following error:
>>>>>>>
>>>>>>> ...
>>>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>>>> connection
>>>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>>>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>>>>>> session
>>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>>>>> sessionid =
>>>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>>>>>> String
>>>>>>> index out of range: -1
>>>>>>>       at java.lang.String.substring(String.java:1937)
>>>>>>>       at
>>>>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>>>>>       at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>>>>       at
>>>>>>>
>>>>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>>>>>       at
>>>>>>>
>>>>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>>>>>       at
>>>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>>>>>       at
>>>>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>>>>>       at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>>>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>>>>>> due
>>>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>>>> unrelated?
>>>>>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>>>>>> this
>>>>>>> error
>>>>>>>
>>>>>>> Any help would be greatly appreciated. Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>> --
>>>> Zijad Purković
>>>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>>>> 061/ 690 - 241
>>>>

Re: HBase Hush Application

Posted by Mark <st...@gmail.com>.
I believe I figured out whats going on. Apparently Hush runs on 
0.91-SNAPSHOT and I am running on Cloudera CDH3 which is 0.90.3.

On 10/2/11 1:34 PM, Mark wrote:
> I haven't installed ZooKeeper locally so its using the one supplied by 
> HMaster. Where is this data located?
>
> On 10/2/11 1:33 PM, lars hofhansl wrote:
>> I have some vague memory that I saw this once with stale data in ZK.
>> If possible clean out your ZK data, and see of it works.
>>
>>
>>
>> ________________________________
>> From: Mark<st...@gmail.com>
>> To: user@hbase.apache.org
>> Sent: Sunday, October 2, 2011 1:24 PM
>> Subject: Re: HBase Hush Application
>>
>> I've tracked it down to MasterAddressTracker returning my IP from the
>> getData() method:
>>
>> 192.X.X.X:55929
>>
>>
>> This is then passed to ServerName which tries to parse the server name
>> but it doesn't contain a comma so it fails.  Any ideas?
>>
>>
>> On 10/2/11 11:55 AM, Mark wrote:
>>> No such luck with either of those attempts.
>>>
>>> FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit
>>> my localhost:60010 and I see the following:
>>>
>>>
>>> Attribute Name     Value     Description
>>> HBase Version     0.90.3-cdh3u1, rUnknown     HBase version and svn 
>>> revision
>>> HBase Compiled     Sat Oct 1 13:12:02 PDT 2011, rob     When HBase 
>>> version
>>> was compiled and by whom
>>> Hadoop Version     0.20.2-cdh3u1,
>>> rbdafb1dbffd0d5f2fbc6ee022e1c8df6500fd638     Hadoop version and svn
>>> revision
>>> Hadoop Compiled     Mon Jul 18 08:06:52 PDT 2011, jenkins     When 
>>> Hadoop
>>> version was compiled and by whom
>>> HBase Root Directory     hdfs://localhost:9000/hbase     Location of 
>>> HBase
>>> home directory
>>> Load average     2     Average number of regions per regionserver. 
>>> Naive
>>> computation.
>>> Zookeeper Quorum     localhost:2181     Addresses of all registered ZK
>>> servers. For more, seezk dump<http://localhost:60010/zk.jsp>.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 10/2/11 11:29 AM, Zijad Purkovic wrote:
>>>> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
>>>> one IPv6 (::1 localhost).
>>>>
>>>> On Sun, Oct 2, 2011 at 8:25 PM, Zijad 
>>>> Purkovic<zi...@gmail.com>   wrote:
>>>>> Try removing or commenting out the IPv6 addresses from your hosts 
>>>>> file
>>>>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>>>>> when hosts file contains multiple IPs assigned to one hostname (in
>>>>> your case localhost).
>>>>>
>>>>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<st...@gmail.com>   
>>>>> wrote:
>>>>>> Just the good ol default hosts file
>>>>>>
>>>>>> ##
>>>>>> # Host Database
>>>>>> #
>>>>>> # localhost is used to configure the loopback interface
>>>>>> # when the system is booting.  Do not change this entry.
>>>>>> ##
>>>>>>
>>>>>> 127.0.0.1       localhost
>>>>>> 255.255.255.255 broadcasthost
>>>>>> ::1             localhost
>>>>>> fe80::1%lo0     localhost
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>>>>> Can you show your hosts file, particularly info on localhost. Of
>>>>>>> course omit any sensitive info like public IP's or hostnames?
>>>>>>>
>>>>>>> On Sun, Oct 2, 2011 at 7:19 PM, 
>>>>>>> Mark<st...@gmail.com>     wrote:
>>>>>>>> I am trying to run the HBase URL application:
>>>>>>>> https://github.com/larsgeorge/hbase-book  on my local machine in
>>>>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep 
>>>>>>>> receiving the
>>>>>>>> following error:
>>>>>>>>
>>>>>>>> ...
>>>>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>>>>> connectString=localhost:2181 sessionTimeout=180000 
>>>>>>>> watcher=hconnection
>>>>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>>>>> connection
>>>>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - 
>>>>>>>> Socket
>>>>>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, 
>>>>>>>> initiating
>>>>>>>> session
>>>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - 
>>>>>>>> Session
>>>>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>>>>>> sessionid =
>>>>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>>>>> Exception in thread "main" 
>>>>>>>> java.lang.StringIndexOutOfBoundsException:
>>>>>>>> String
>>>>>>>> index out of range: -1
>>>>>>>>       at java.lang.String.substring(String.java:1937)
>>>>>>>>       at
>>>>>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81) 
>>>>>>>>
>>>>>>>>       at 
>>>>>>>> org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>>>>>       at
>>>>>>>>
>>>>>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62) 
>>>>>>>>
>>>>>>>>       at
>>>>>>>>
>>>>>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568) 
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94) 
>>>>>>>>
>>>>>>>>       at
>>>>>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126) 
>>>>>>>>
>>>>>>>>       at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> When I type JPS I see /HMaster/ however I do not see any 
>>>>>>>> mention of
>>>>>>>> /Zookeeper/. Is this to be expected? Is the above error I am 
>>>>>>>> receiving
>>>>>>>> due
>>>>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>>>>> unrelated?
>>>>>>>> Is there something wrong with my hostname? Any ideas why I am 
>>>>>>>> receiving
>>>>>>>> this
>>>>>>>> error
>>>>>>>>
>>>>>>>> Any help would be greatly appreciated. Thanks
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>> -- 
>>>>> Zijad Purković
>>>>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>>>>> 061/ 690 - 241
>>>>>

Re: HBase Hush Application

Posted by Mark <st...@gmail.com>.
I haven't installed ZooKeeper locally so its using the one supplied by 
HMaster. Where is this data located?

On 10/2/11 1:33 PM, lars hofhansl wrote:
> I have some vague memory that I saw this once with stale data in ZK.
> If possible clean out your ZK data, and see of it works.
>
>
>
> ________________________________
> From: Mark<st...@gmail.com>
> To: user@hbase.apache.org
> Sent: Sunday, October 2, 2011 1:24 PM
> Subject: Re: HBase Hush Application
>
> I've tracked it down to MasterAddressTracker returning my IP from the
> getData() method:
>
> 192.X.X.X:55929
>
>
> This is then passed to ServerName which tries to parse the server name
> but it doesn't contain a comma so it fails.  Any ideas?
>
>
> On 10/2/11 11:55 AM, Mark wrote:
>> No such luck with either of those attempts.
>>
>> FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit
>> my localhost:60010 and I see the following:
>>
>>
>> Attribute Name     Value     Description
>> HBase Version     0.90.3-cdh3u1, rUnknown     HBase version and svn revision
>> HBase Compiled     Sat Oct 1 13:12:02 PDT 2011, rob     When HBase version
>> was compiled and by whom
>> Hadoop Version     0.20.2-cdh3u1,
>> rbdafb1dbffd0d5f2fbc6ee022e1c8df6500fd638     Hadoop version and svn
>> revision
>> Hadoop Compiled     Mon Jul 18 08:06:52 PDT 2011, jenkins     When Hadoop
>> version was compiled and by whom
>> HBase Root Directory     hdfs://localhost:9000/hbase     Location of HBase
>> home directory
>> Load average     2     Average number of regions per regionserver. Naive
>> computation.
>> Zookeeper Quorum     localhost:2181     Addresses of all registered ZK
>> servers. For more, seezk dump<http://localhost:60010/zk.jsp>.
>>
>>
>>
>>
>>
>>
>>
>> On 10/2/11 11:29 AM, Zijad Purkovic wrote:
>>> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
>>> one IPv6 (::1 localhost).
>>>
>>> On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic<zi...@gmail.com>   wrote:
>>>> Try removing or commenting out the IPv6 addresses from your hosts file
>>>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>>>> when hosts file contains multiple IPs assigned to one hostname (in
>>>> your case localhost).
>>>>
>>>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<st...@gmail.com>   wrote:
>>>>> Just the good ol default hosts file
>>>>>
>>>>> ##
>>>>> # Host Database
>>>>> #
>>>>> # localhost is used to configure the loopback interface
>>>>> # when the system is booting.  Do not change this entry.
>>>>> ##
>>>>>
>>>>> 127.0.0.1       localhost
>>>>> 255.255.255.255 broadcasthost
>>>>> ::1             localhost
>>>>> fe80::1%lo0     localhost
>>>>>
>>>>>
>>>>>
>>>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>>>> Can you show your hosts file, particularly info on localhost. Of
>>>>>> course omit any sensitive info like public IP's or hostnames?
>>>>>>
>>>>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>     wrote:
>>>>>>> I am trying to run the HBase URL application:
>>>>>>> https://github.com/larsgeorge/hbase-book  on my local machine in
>>>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>>>>>> following error:
>>>>>>>
>>>>>>> ...
>>>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>>>> connection
>>>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>>>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>>>>>> session
>>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>>>>> sessionid =
>>>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>>>>>> String
>>>>>>> index out of range: -1
>>>>>>>       at java.lang.String.substring(String.java:1937)
>>>>>>>       at
>>>>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>>>>>       at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>>>>       at
>>>>>>>
>>>>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>>>>>       at
>>>>>>>
>>>>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>>>>>       at
>>>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>>>>>       at
>>>>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>>>>>       at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>>>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>>>>>> due
>>>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>>>> unrelated?
>>>>>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>>>>>> this
>>>>>>> error
>>>>>>>
>>>>>>> Any help would be greatly appreciated. Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>> --
>>>> Zijad Purković
>>>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>>>> 061/ 690 - 241
>>>>

Re: HBase Hush Application

Posted by lars hofhansl <lh...@yahoo.com>.
I have some vague memory that I saw this once with stale data in ZK.
If possible clean out your ZK data, and see of it works.



________________________________
From: Mark <st...@gmail.com>
To: user@hbase.apache.org
Sent: Sunday, October 2, 2011 1:24 PM
Subject: Re: HBase Hush Application

I've tracked it down to MasterAddressTracker returning my IP from the 
getData() method:

192.X.X.X:55929


This is then passed to ServerName which tries to parse the server name 
but it doesn't contain a comma so it fails.  Any ideas?


On 10/2/11 11:55 AM, Mark wrote:
> No such luck with either of those attempts.
>
> FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit 
> my localhost:60010 and I see the following:
>
>
> Attribute Name     Value     Description
> HBase Version     0.90.3-cdh3u1, rUnknown     HBase version and svn revision
> HBase Compiled     Sat Oct 1 13:12:02 PDT 2011, rob     When HBase version 
> was compiled and by whom
> Hadoop Version     0.20.2-cdh3u1, 
> rbdafb1dbffd0d5f2fbc6ee022e1c8df6500fd638     Hadoop version and svn 
> revision
> Hadoop Compiled     Mon Jul 18 08:06:52 PDT 2011, jenkins     When Hadoop 
> version was compiled and by whom
> HBase Root Directory     hdfs://localhost:9000/hbase     Location of HBase 
> home directory
> Load average     2     Average number of regions per regionserver. Naive 
> computation.
> Zookeeper Quorum     localhost:2181     Addresses of all registered ZK 
> servers. For more, seezk dump <http://localhost:60010/zk.jsp>.
>
>
>
>
>
>
>
> On 10/2/11 11:29 AM, Zijad Purkovic wrote:
>> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
>> one IPv6 (::1 localhost).
>>
>> On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic<zi...@gmail.com>  wrote:
>>> Try removing or commenting out the IPv6 addresses from your hosts file
>>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>>> when hosts file contains multiple IPs assigned to one hostname (in
>>> your case localhost).
>>>
>>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<st...@gmail.com>  wrote:
>>>> Just the good ol default hosts file
>>>>
>>>> ##
>>>> # Host Database
>>>> #
>>>> # localhost is used to configure the loopback interface
>>>> # when the system is booting.  Do not change this entry.
>>>> ##
>>>>
>>>> 127.0.0.1       localhost
>>>> 255.255.255.255 broadcasthost
>>>> ::1             localhost
>>>> fe80::1%lo0     localhost
>>>>
>>>>
>>>>
>>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>>> Can you show your hosts file, particularly info on localhost. Of
>>>>> course omit any sensitive info like public IP's or hostnames?
>>>>>
>>>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>    wrote:
>>>>>> I am trying to run the HBase URL application:
>>>>>> https://github.com/larsgeorge/hbase-book  on my local machine in
>>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>>>>> following error:
>>>>>>
>>>>>> ...
>>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>>> connection
>>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>>>>> session
>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>>>> sessionid =
>>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>>>>> String
>>>>>> index out of range: -1
>>>>>>     at java.lang.String.substring(String.java:1937)
>>>>>>     at
>>>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>>>>     at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>>>     at
>>>>>>
>>>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>>>>     at
>>>>>>
>>>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>>>>     at
>>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>>>>     at
>>>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>>>>     at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>>>
>>>>>>
>>>>>>
>>>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>>>>> due
>>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>>> unrelated?
>>>>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>>>>> this
>>>>>> error
>>>>>>
>>>>>> Any help would be greatly appreciated. Thanks
>>>>>>
>>>>>>
>>>>>>
>>>
>>> --
>>> Zijad Purković
>>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>>> 061/ 690 - 241
>>>
>>

Re: HBase Hush Application

Posted by Mark <st...@gmail.com>.
I've tracked it down to MasterAddressTracker returning my IP from the 
getData() method:

192.X.X.X:55929


This is then passed to ServerName which tries to parse the server name 
but it doesn't contain a comma so it fails.  Any ideas?


On 10/2/11 11:55 AM, Mark wrote:
> No such luck with either of those attempts.
>
> FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit 
> my localhost:60010 and I see the following:
>
>
> Attribute Name 	Value 	Description
> HBase Version 	0.90.3-cdh3u1, rUnknown 	HBase version and svn revision
> HBase Compiled 	Sat Oct 1 13:12:02 PDT 2011, rob 	When HBase version 
> was compiled and by whom
> Hadoop Version 	0.20.2-cdh3u1, 
> rbdafb1dbffd0d5f2fbc6ee022e1c8df6500fd638 	Hadoop version and svn 
> revision
> Hadoop Compiled 	Mon Jul 18 08:06:52 PDT 2011, jenkins 	When Hadoop 
> version was compiled and by whom
> HBase Root Directory 	hdfs://localhost:9000/hbase 	Location of HBase 
> home directory
> Load average 	2 	Average number of regions per regionserver. Naive 
> computation.
> Zookeeper Quorum 	localhost:2181 	Addresses of all registered ZK 
> servers. For more, seezk dump <http://localhost:60010/zk.jsp>.
>
>
>
>
>
>
>
> On 10/2/11 11:29 AM, Zijad Purkovic wrote:
>> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
>> one IPv6 (::1 localhost).
>>
>> On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic<zi...@gmail.com>  wrote:
>>> Try removing or commenting out the IPv6 addresses from your hosts file
>>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>>> when hosts file contains multiple IPs assigned to one hostname (in
>>> your case localhost).
>>>
>>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<st...@gmail.com>  wrote:
>>>> Just the good ol default hosts file
>>>>
>>>> ##
>>>> # Host Database
>>>> #
>>>> # localhost is used to configure the loopback interface
>>>> # when the system is booting.  Do not change this entry.
>>>> ##
>>>>
>>>> 127.0.0.1       localhost
>>>> 255.255.255.255 broadcasthost
>>>> ::1             localhost
>>>> fe80::1%lo0     localhost
>>>>
>>>>
>>>>
>>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>>> Can you show your hosts file, particularly info on localhost. Of
>>>>> course omit any sensitive info like public IP's or hostnames?
>>>>>
>>>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>    wrote:
>>>>>> I am trying to run the HBase URL application:
>>>>>> https://github.com/larsgeorge/hbase-book  on my local machine in
>>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>>>>> following error:
>>>>>>
>>>>>> ...
>>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>>> connection
>>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>>>>> session
>>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>>>> sessionid =
>>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>>>>> String
>>>>>> index out of range: -1
>>>>>>     at java.lang.String.substring(String.java:1937)
>>>>>>     at
>>>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>>>>     at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>>>     at
>>>>>>
>>>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>>>>     at
>>>>>>
>>>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>>>>     at
>>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>>>>     at
>>>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>>>>     at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>>>
>>>>>>
>>>>>>
>>>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>>>>> due
>>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>>> unrelated?
>>>>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>>>>> this
>>>>>> error
>>>>>>
>>>>>> Any help would be greatly appreciated. Thanks
>>>>>>
>>>>>>
>>>>>>
>>>
>>> --
>>> Zijad Purković
>>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>>> 061/ 690 - 241
>>>
>>

Re: HBase Hush Application

Posted by Mark <st...@gmail.com>.
No such luck with either of those attempts.

FYI Hadoop, HBase and ZooKeeper seem to be working because I can hit my 
localhost:60010 and I see the following:


Attribute Name 	Value 	Description
HBase Version 	0.90.3-cdh3u1, rUnknown 	HBase version and svn revision
HBase Compiled 	Sat Oct 1 13:12:02 PDT 2011, rob 	When HBase version was 
compiled and by whom
Hadoop Version 	0.20.2-cdh3u1, 
rbdafb1dbffd0d5f2fbc6ee022e1c8df6500fd638 	Hadoop version and svn revision
Hadoop Compiled 	Mon Jul 18 08:06:52 PDT 2011, jenkins 	When Hadoop 
version was compiled and by whom
HBase Root Directory 	hdfs://localhost:9000/hbase 	Location of HBase 
home directory
Load average 	2 	Average number of regions per regionserver. Naive 
computation.
Zookeeper Quorum 	localhost:2181 	Addresses of all registered ZK 
servers. For more, seezk dump <http://localhost:60010/zk.jsp>.







On 10/2/11 11:29 AM, Zijad Purkovic wrote:
> Or comment out one of the IPv6, leave one IPv4 (default localhost) and
> one IPv6 (::1 localhost).
>
> On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic<zi...@gmail.com>  wrote:
>> Try removing or commenting out the IPv6 addresses from your hosts file
>> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
>> when hosts file contains multiple IPs assigned to one hostname (in
>> your case localhost).
>>
>> On Sun, Oct 2, 2011 at 8:17 PM, Mark<st...@gmail.com>  wrote:
>>> Just the good ol default hosts file
>>>
>>> ##
>>> # Host Database
>>> #
>>> # localhost is used to configure the loopback interface
>>> # when the system is booting.  Do not change this entry.
>>> ##
>>>
>>> 127.0.0.1       localhost
>>> 255.255.255.255 broadcasthost
>>> ::1             localhost
>>> fe80::1%lo0     localhost
>>>
>>>
>>>
>>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>> Can you show your hosts file, particularly info on localhost. Of
>>>> course omit any sensitive info like public IP's or hostnames?
>>>>
>>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>    wrote:
>>>>> I am trying to run the HBase URL application:
>>>>> https://github.com/larsgeorge/hbase-book on my local machine in
>>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>>>> following error:
>>>>>
>>>>> ...
>>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>>> connection
>>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>>>> session
>>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>>> sessionid =
>>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>>>> String
>>>>> index out of range: -1
>>>>>     at java.lang.String.substring(String.java:1937)
>>>>>     at
>>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>>>     at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>>     at
>>>>>
>>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>>>     at
>>>>>
>>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>>>     at
>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>>>     at
>>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>>>     at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>>
>>>>>
>>>>>
>>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>>>> due
>>>>> to a misconfiguration of zookeeper or is it something completely
>>>>> unrelated?
>>>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>>>> this
>>>>> error
>>>>>
>>>>> Any help would be greatly appreciated. Thanks
>>>>>
>>>>>
>>>>>
>>>>
>>
>>
>> --
>> Zijad Purković
>> Dobrovoljnih davalaca krvi 3/19, Zavidovići
>> 061/ 690 - 241
>>
>
>

Re: HBase Hush Application

Posted by Zijad Purkovic <zi...@gmail.com>.
Or comment out one of the IPv6, leave one IPv4 (default localhost) and
one IPv6 (::1 localhost).

On Sun, Oct 2, 2011 at 8:25 PM, Zijad Purkovic <zi...@gmail.com> wrote:
> Try removing or commenting out the IPv6 addresses from your hosts file
> and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
> when hosts file contains multiple IPs assigned to one hostname (in
> your case localhost).
>
> On Sun, Oct 2, 2011 at 8:17 PM, Mark <st...@gmail.com> wrote:
>> Just the good ol default hosts file
>>
>> ##
>> # Host Database
>> #
>> # localhost is used to configure the loopback interface
>> # when the system is booting.  Do not change this entry.
>> ##
>>
>> 127.0.0.1       localhost
>> 255.255.255.255 broadcasthost
>> ::1             localhost
>> fe80::1%lo0     localhost
>>
>>
>>
>> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>>
>>> Can you show your hosts file, particularly info on localhost. Of
>>> course omit any sensitive info like public IP's or hostnames?
>>>
>>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>  wrote:
>>>>
>>>> I am trying to run the HBase URL application:
>>>> https://github.com/larsgeorge/hbase-book on my local machine in
>>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>>> following error:
>>>>
>>>> ...
>>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>>> connection
>>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>>> session
>>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>>> sessionid =
>>>> 0x132c59cf1100004, negotiated timeout = 40000
>>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>>> String
>>>> index out of range: -1
>>>>    at java.lang.String.substring(String.java:1937)
>>>>    at
>>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>>    at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>>    at
>>>>
>>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>>    at
>>>>
>>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>>    at
>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>>    at
>>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>>    at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>>
>>>>
>>>>
>>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>>> due
>>>> to a misconfiguration of zookeeper or is it something completely
>>>> unrelated?
>>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>>> this
>>>> error
>>>>
>>>> Any help would be greatly appreciated. Thanks
>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
>
> --
> Zijad Purković
> Dobrovoljnih davalaca krvi 3/19, Zavidovići
> 061/ 690 - 241
>



-- 
Zijad Purković
Dobrovoljnih davalaca krvi 3/19, Zavidovići
061/ 690 - 241

Re: HBase Hush Application

Posted by Zijad Purkovic <zi...@gmail.com>.
Try removing or commenting out the IPv6 addresses from your hosts file
and restart hadoop/hbase. As i understand hadoop/hbase doesn't like
when hosts file contains multiple IPs assigned to one hostname (in
your case localhost).

On Sun, Oct 2, 2011 at 8:17 PM, Mark <st...@gmail.com> wrote:
> Just the good ol default hosts file
>
> ##
> # Host Database
> #
> # localhost is used to configure the loopback interface
> # when the system is booting.  Do not change this entry.
> ##
>
> 127.0.0.1       localhost
> 255.255.255.255 broadcasthost
> ::1             localhost
> fe80::1%lo0     localhost
>
>
>
> On 10/2/11 11:04 AM, Zijad Purkovic wrote:
>>
>> Can you show your hosts file, particularly info on localhost. Of
>> course omit any sensitive info like public IP's or hostnames?
>>
>> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>  wrote:
>>>
>>> I am trying to run the HBase URL application:
>>> https://github.com/larsgeorge/hbase-book on my local machine in
>>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>>> following error:
>>>
>>> ...
>>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket
>>> connection
>>> to server localhost/0:0:0:0:0:0:0:1:2181
>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating
>>> session
>>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
>>> sessionid =
>>> 0x132c59cf1100004, negotiated timeout = 40000
>>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
>>> String
>>> index out of range: -1
>>>    at java.lang.String.substring(String.java:1937)
>>>    at
>>> org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>>    at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>>    at
>>>
>>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>>    at
>>>
>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>>    at
>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>    at
>>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>>    at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>>
>>>
>>>
>>> When I type JPS I see /HMaster/ however I do not see any mention of
>>> /Zookeeper/. Is this to be expected? Is the above error I am receiving
>>> due
>>> to a misconfiguration of zookeeper or is it something completely
>>> unrelated?
>>> Is there something wrong with my hostname? Any ideas why I am receiving
>>> this
>>> error
>>>
>>> Any help would be greatly appreciated. Thanks
>>>
>>>
>>>
>>
>>
>



-- 
Zijad Purković
Dobrovoljnih davalaca krvi 3/19, Zavidovići
061/ 690 - 241

Re: HBase Hush Application

Posted by Mark <st...@gmail.com>.
Just the good ol default hosts file

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost



On 10/2/11 11:04 AM, Zijad Purkovic wrote:
> Can you show your hosts file, particularly info on localhost. Of
> course omit any sensitive info like public IP's or hostnames?
>
> On Sun, Oct 2, 2011 at 7:19 PM, Mark<st...@gmail.com>  wrote:
>> I am trying to run the HBase URL application:
>> https://github.com/larsgeorge/hbase-book on my local machine in
>> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
>> following error:
>>
>> ...
>> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
>> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
>> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket connection
>> to server localhost/0:0:0:0:0:0:0:1:2181
>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
>> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
>> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
>> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid =
>> 0x132c59cf1100004, negotiated timeout = 40000
>> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
>> index out of range: -1
>>     at java.lang.String.substring(String.java:1937)
>>     at org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>>     at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>>     at
>> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>>     at
>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>>     at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>     at
>> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>>     at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>>
>>
>>
>> When I type JPS I see /HMaster/ however I do not see any mention of
>> /Zookeeper/. Is this to be expected? Is the above error I am receiving due
>> to a misconfiguration of zookeeper or is it something completely unrelated?
>> Is there something wrong with my hostname? Any ideas why I am receiving this
>> error
>>
>> Any help would be greatly appreciated. Thanks
>>
>>
>>
>
>

Re: HBase Hush Application

Posted by Zijad Purkovic <zi...@gmail.com>.
Can you show your hosts file, particularly info on localhost. Of
course omit any sensitive info like public IP's or hostnames?

On Sun, Oct 2, 2011 at 7:19 PM, Mark <st...@gmail.com> wrote:
> I am trying to run the HBase URL application:
> https://github.com/larsgeorge/hbase-book on my local machine in
> psuedo-distributed mode using the Cloudera  CDH3 but I keep receiving the
> following error:
>
> ...
> INFO [main] (ZooKeeper.java:373) - Initiating client connection,
> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
> INFO [main-SendThread()] (ClientCnxn.java:1041) - Opening socket connection
> to server localhost/0:0:0:0:0:0:0:1:2181
> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:949) - Socket
> connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
> INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:738) - Session
> establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid =
> 0x132c59cf1100004, negotiated timeout = 40000
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
>    at java.lang.String.substring(String.java:1937)
>    at org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
>    at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:63)
>    at
> org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
>    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>    at
> com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
>    at com.hbasebook.hush.HushMain.main(HushMain.java:57)
>
>
>
> When I type JPS I see /HMaster/ however I do not see any mention of
> /Zookeeper/. Is this to be expected? Is the above error I am receiving due
> to a misconfiguration of zookeeper or is it something completely unrelated?
> Is there something wrong with my hostname? Any ideas why I am receiving this
> error
>
> Any help would be greatly appreciated. Thanks
>
>
>



-- 
Zijad Purković
Dobrovoljnih davalaca krvi 3/19, Zavidovići
061/ 690 - 241