|
Mark
2011-10-02, 17:19
Dejan Menges
2011-10-02, 17:48
Mark
2011-10-02, 18:16
Zijad Purkovic
2011-10-02, 18:04
Mark
2011-10-02, 18:17
Zijad Purkovic
2011-10-02, 18:25
Zijad Purkovic
2011-10-02, 18:29
Mark
2011-10-02, 18:55
Mark
2011-10-02, 20:24
Dejan Menges
2011-10-02, 20:31
lars hofhansl
2011-10-02, 20:33
Mark
2011-10-02, 20:34
lars hofhansl
2011-10-02, 20:38
Mark
2011-10-03, 00:49
Michel Segel
2011-10-04, 09:31
Richipal
2012-05-31, 14:59
|
-
HBase Hush ApplicationMark 2011-10-02, 17:19
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 +
Mark 2011-10-02, 17:19
-
Re: HBase Hush ApplicationDejan Menges 2011-10-02, 17:48
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 <[EMAIL PROTECTED]> 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 > > > +
Dejan Menges 2011-10-02, 17:48
-
Re: HBase Hush ApplicationMark 2011-10-02, 18:16
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<[EMAIL PROTECTED]> 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 >> >> >> +
Mark 2011-10-02, 18:16
-
Re: HBase Hush ApplicationZijad Purkovic 2011-10-02, 18:04
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 <[EMAIL PROTECTED]> 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 Purkovic 2011-10-02, 18:04
-
Re: HBase Hush ApplicationMark 2011-10-02, 18:17
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<[EMAIL PROTECTED]> 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 >> >> >> > > +
Mark 2011-10-02, 18:17
-
Re: HBase Hush ApplicationZijad Purkovic 2011-10-02, 18:25
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 <[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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 Purkovic 2011-10-02, 18:25
-
Re: HBase Hush ApplicationZijad Purkovic 2011-10-02, 18:29
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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 +
Zijad Purkovic 2011-10-02, 18:29
-
Re: HBase Hush ApplicationMark 2011-10-02, 18:55
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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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 +
Mark 2011-10-02, 18:55
-
Re: HBase Hush ApplicationMark 2011-10-02, 20:24
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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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) +
Mark 2011-10-02, 20:24
-
Re: HBase Hush ApplicationDejan Menges 2011-10-02, 20:31
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 <[EMAIL PROTECTED]> > 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<zijadpurkovic@gmail.**com<[EMAIL PROTECTED]>> >>> 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<[EMAIL PROTECTED]**> >>>> 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<[EMAIL PROTECTED]**> >>>>>> 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 +
Dejan Menges 2011-10-02, 20:31
-
Re: HBase Hush Applicationlars hofhansl 2011-10-02, 20:33
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 <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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) +
lars hofhansl 2011-10-02, 20:33
-
Re: HBase Hush ApplicationMark 2011-10-02, 20:34
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<[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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 +
Mark 2011-10-02, 20:34
-
Re: HBase Hush Applicationlars hofhansl 2011-10-02, 20:38
Default is /tmp/hbase-<user>/zookeeper.
Only do this if this is a play cluster. ________________________________ From: Mark <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] 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<[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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 +
lars hofhansl 2011-10-02, 20:38
-
Re: HBase Hush ApplicationMark 2011-10-03, 00:49
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<[EMAIL PROTECTED]> >> To: [EMAIL PROTECTED] >> 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<[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> >>>>> 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<[EMAIL PROTECTED]> 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, +
Mark 2011-10-03, 00:49
-
Re: HBase Hush ApplicationMichel Segel 2011-10-04, 09:31
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 <[EMAIL PROTECTED]> 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<[EMAIL PROTECTED]> 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 >>> >>> >>> >> >> > +
Michel Segel 2011-10-04, 09:31
-
Re: HBase Hush ApplicationRichipal 2012-05-31, 14:59
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. +
Richipal 2012-05-31, 14:59
|