You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Adrien Mogenet <ad...@gmail.com> on 2013/07/13 00:32:47 UTC

ZK-related issue when updating from 0.94.6 to 0.94.8

Hi there,

I'm trying to upgrade from 0.94.6 (distributed mode) to 0.94.8 and I'm
seeing strange WARN messages leading in region-less regionserver once
updated.

Here is the kind of lines I can find:

> WARN org.apache.hadoop.hbase.zookeeper.ZKAssign:
regionserver:60020-0x23d207e751d20c4 Attempt to transition the unassigned
node for 9a
eb2d2c3e878ee50ad4806dd3488c15 from M_ZK_REGION_OFFLINE to
RS_ZK_REGION_OPENING failed, the node existed but was in the state
M_SERVER_SHUTDOWN set by the server my-server.org,60020,1373289114184

I've uploaded a longer extract including DEBUG traces to Pastebin:
http://pastebin.com/raw.php?i=Me2esbPF

I've performed as usual: stopping the RS, updating HBase binaries and
libraries, then starting the RS... When digging into the log file, I can
read one strange error ZK-related ("ZKW CONSTRUCTOR STACK TRACE FOR
DEBUGGING"), see complete trace here: http://pastebin.com/raw.php?i=7wy0wdNq

Any idea?
-- 
Adrien Mogenet
http://www.borntosegfault.com

Re: ZK-related issue when updating from 0.94.6 to 0.94.8

Posted by Ted Yu <yu...@gmail.com>.
Take a look at https://issues.apache.org/jira/browse/HBASE-8259

Cheers

On Jul 13, 2013, at 4:04 AM, Adrien Mogenet <ad...@gmail.com> wrote:

> My RS finally started without the "strange ZK error", but regions are still
> not moving...
> 
> Here is the new sample from RS log : http://pastebin.com/raw.php?i=QJxs4chE
> 
> I can't see anything strange in the ZK's logs, just classical
> connect/disconnect requests.
> When should ZK nodes move from M_SERVER_SHUTDOWN to M_ZK_REGION_OFFLINE ?
> Is it a new behavior from the Master's side and I should upgrade HMaster
> before RS ? (I forgot to mention I was testing a rolling-upgrade scenario)
> 
> 
> On Sat, Jul 13, 2013 at 6:52 AM, Ted Yu <yu...@gmail.com> wrote:
> 
>> w.r.t. the strange error mentioned at the bottom of the email, it came
>> from connectionEvent():
>> 
>>        if (this.recoverableZooKeeper == null) {
>>          LOG.error("ZK is null on connection event -- see stack trace " +
>>            "for the stack trace when constructor was called on this zkw",
>>            this.constructorCaller);
>>          throw new NullPointerException("ZK is null");
>>        }
>> 
>> this.constructorCaller was filled out in the constructor.
>> The error indicated that the following call wasn't successful (line 153 in
>> ZooKeeperWatcher ctor)
>> 
>>    this.recoverableZooKeeper = ZKUtil.connect(conf, quorum, this,
>> descriptor);
>> 
>> Can you check more of the RS log ?
>> 
>> zookeeper log may reveal something as well.
>> 
>> Cheers
>> 
>> On Fri, Jul 12, 2013 at 3:32 PM, Adrien Mogenet <adrien.mogenet@gmail.com
>>> wrote:
>> 
>>> Hi there,
>>> 
>>> I'm trying to upgrade from 0.94.6 (distributed mode) to 0.94.8 and I'm
>>> seeing strange WARN messages leading in region-less regionserver once
>>> updated.
>>> 
>>> Here is the kind of lines I can find:
>>> 
>>>> WARN org.apache.hadoop.hbase.zookeeper.ZKAssign:
>>> regionserver:60020-0x23d207e751d20c4 Attempt to transition the unassigned
>>> node for 9a
>>> eb2d2c3e878ee50ad4806dd3488c15 from M_ZK_REGION_OFFLINE to
>>> RS_ZK_REGION_OPENING failed, the node existed but was in the state
>>> M_SERVER_SHUTDOWN set by the server my-server.org,60020,1373289114184
>>> 
>>> I've uploaded a longer extract including DEBUG traces to Pastebin:
>>> http://pastebin.com/raw.php?i=Me2esbPF
>>> 
>>> I've performed as usual: stopping the RS, updating HBase binaries and
>>> libraries, then starting the RS... When digging into the log file, I can
>>> read one strange error ZK-related ("ZKW CONSTRUCTOR STACK TRACE FOR
>>> DEBUGGING"), see complete trace here:
>>> http://pastebin.com/raw.php?i=7wy0wdNq
>>> 
>>> Any idea?
>>> --
>>> Adrien Mogenet
>>> http://www.borntosegfault.com
> 
> 
> 
> -- 
> Adrien Mogenet
> http://www.borntosegfault.com

Re: ZK-related issue when updating from 0.94.6 to 0.94.8

Posted by Adrien Mogenet <ad...@gmail.com>.
My RS finally started without the "strange ZK error", but regions are still
not moving...

Here is the new sample from RS log : http://pastebin.com/raw.php?i=QJxs4chE

I can't see anything strange in the ZK's logs, just classical
connect/disconnect requests.
When should ZK nodes move from M_SERVER_SHUTDOWN to M_ZK_REGION_OFFLINE ?
Is it a new behavior from the Master's side and I should upgrade HMaster
before RS ? (I forgot to mention I was testing a rolling-upgrade scenario)


On Sat, Jul 13, 2013 at 6:52 AM, Ted Yu <yu...@gmail.com> wrote:

> w.r.t. the strange error mentioned at the bottom of the email, it came
> from connectionEvent():
>
>         if (this.recoverableZooKeeper == null) {
>           LOG.error("ZK is null on connection event -- see stack trace " +
>             "for the stack trace when constructor was called on this zkw",
>             this.constructorCaller);
>           throw new NullPointerException("ZK is null");
>         }
>
> this.constructorCaller was filled out in the constructor.
> The error indicated that the following call wasn't successful (line 153 in
> ZooKeeperWatcher ctor)
>
>     this.recoverableZooKeeper = ZKUtil.connect(conf, quorum, this,
> descriptor);
>
> Can you check more of the RS log ?
>
> zookeeper log may reveal something as well.
>
> Cheers
>
> On Fri, Jul 12, 2013 at 3:32 PM, Adrien Mogenet <adrien.mogenet@gmail.com
> >wrote:
>
> > Hi there,
> >
> > I'm trying to upgrade from 0.94.6 (distributed mode) to 0.94.8 and I'm
> > seeing strange WARN messages leading in region-less regionserver once
> > updated.
> >
> > Here is the kind of lines I can find:
> >
> > > WARN org.apache.hadoop.hbase.zookeeper.ZKAssign:
> > regionserver:60020-0x23d207e751d20c4 Attempt to transition the unassigned
> > node for 9a
> > eb2d2c3e878ee50ad4806dd3488c15 from M_ZK_REGION_OFFLINE to
> > RS_ZK_REGION_OPENING failed, the node existed but was in the state
> > M_SERVER_SHUTDOWN set by the server my-server.org,60020,1373289114184
> >
> > I've uploaded a longer extract including DEBUG traces to Pastebin:
> > http://pastebin.com/raw.php?i=Me2esbPF
> >
> > I've performed as usual: stopping the RS, updating HBase binaries and
> > libraries, then starting the RS... When digging into the log file, I can
> > read one strange error ZK-related ("ZKW CONSTRUCTOR STACK TRACE FOR
> > DEBUGGING"), see complete trace here:
> > http://pastebin.com/raw.php?i=7wy0wdNq
> >
> > Any idea?
> > --
> > Adrien Mogenet
> > http://www.borntosegfault.com
> >
>



-- 
Adrien Mogenet
http://www.borntosegfault.com

Re: where to download 0.95.1-hadoop1 jar file using Maven?

Posted by "S. Zhou" <my...@yahoo.com>.
Ted, do you have any public maven repository to download hbase client with version hbase-0.95.1-hadoop1? I am kind of surprised that it becomes an issue.




________________________________
 From: S. Zhou <my...@yahoo.com>
To: "user@hbase.apache.org" <us...@hbase.apache.org> 
Sent: Thursday, August 15, 2013 8:18 PM
Subject: Re: where to download 0.95.1-hadoop1 jar file using Maven?
 


Thanks Ted. But it seems still not working after I add that repository: the error message is the same.




________________________________
 From: Ted Yu <yu...@gmail.com>
To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <my...@yahoo.com> 
Sent: Friday, August 16, 2013 10:54 AM
Subject: Re: where to download 0.95.1-hadoop1 jar file using Maven?
 

Can you check repositories section from your pom.xml ?
Below is snippet from pom.xml of HBase trunk:

  <repositories>
    <repository>
      <id>cloudbees netty</id>
      <url>http://repository-netty.forge.cloudbees.com/snapshot/</url>
    </repository>


On Thu, Aug 15, 2013 at 7:50 PM, S. Zhou <my...@yahoo.com> wrote:

> Hi there,
>     I am writing Java program to access HBase and the version of Hbase I
> use is  0.95.1-hadoop1.  The problem is: I failed to download the jar file
> for this version from Maven central repository even though it is listed at
> the Maven central repository (
>
 http://mvnrepository.com/artifact/org.apache.hbase/hbase/0.95.1-hadoop1):
>
> <dependency>
>     <groupId>org.apache.hbase</groupId>
>     <artifactId>hbase</artifactId>
>     <version>0.95.1-hadoop1</version>
> </dependency>
>
> The error message is: Could not find artifact
> org.apache.hbase:hbase:jar:0.95.1-hadoop1
>
>
> BTW, I can successfully download other versions like 0.94.0. Any idea?
>
> Thanks
>

Re: where to download 0.95.1-hadoop1 jar file using Maven?

Posted by "S. Zhou" <my...@yahoo.com>.
Thanks Ted. But it seems still not working after I add that repository: the error message is the same.




________________________________
 From: Ted Yu <yu...@gmail.com>
To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <my...@yahoo.com> 
Sent: Friday, August 16, 2013 10:54 AM
Subject: Re: where to download 0.95.1-hadoop1 jar file using Maven?
 

Can you check repositories section from your pom.xml ?
Below is snippet from pom.xml of HBase trunk:

  <repositories>
    <repository>
      <id>cloudbees netty</id>
      <url>http://repository-netty.forge.cloudbees.com/snapshot/</url>
    </repository>


On Thu, Aug 15, 2013 at 7:50 PM, S. Zhou <my...@yahoo.com> wrote:

> Hi there,
>     I am writing Java program to access HBase and the version of Hbase I
> use is  0.95.1-hadoop1.  The problem is: I failed to download the jar file
> for this version from Maven central repository even though it is listed at
> the Maven central repository (
> http://mvnrepository.com/artifact/org.apache.hbase/hbase/0.95.1-hadoop1):
>
> <dependency>
>     <groupId>org.apache.hbase</groupId>
>     <artifactId>hbase</artifactId>
>     <version>0.95.1-hadoop1</version>
> </dependency>
>
> The error message is: Could not find artifact
> org.apache.hbase:hbase:jar:0.95.1-hadoop1
>
>
> BTW, I can successfully download other versions like 0.94.0. Any idea?
>
> Thanks
>

Re: where to download 0.95.1-hadoop1 jar file using Maven?

Posted by Ted Yu <yu...@gmail.com>.
Can you check repositories section from your pom.xml ?
Below is snippet from pom.xml of HBase trunk:

  <repositories>
    <repository>
      <id>cloudbees netty</id>
      <url>http://repository-netty.forge.cloudbees.com/snapshot/</url>
    </repository>


On Thu, Aug 15, 2013 at 7:50 PM, S. Zhou <my...@yahoo.com> wrote:

> Hi there,
>     I am writing Java program to access HBase and the version of Hbase I
> use is  0.95.1-hadoop1.  The problem is: I failed to download the jar file
> for this version from Maven central repository even though it is listed at
> the Maven central repository (
> http://mvnrepository.com/artifact/org.apache.hbase/hbase/0.95.1-hadoop1):
>
> <dependency>
>     <groupId>org.apache.hbase</groupId>
>     <artifactId>hbase</artifactId>
>     <version>0.95.1-hadoop1</version>
> </dependency>
>
> The error message is: Could not find artifact
> org.apache.hbase:hbase:jar:0.95.1-hadoop1
>
>
> BTW, I can successfully download other versions like 0.94.0. Any idea?
>
> Thanks
>

Re: Need Help on hbase error: The znode for the -ROOT- region doesn't exist!

Posted by Ted Yu <yu...@gmail.com>.
Release notes for 0.96 would be a good resource.

w.r.t. API changes, please refer to:
https://docs.google.com/document/d/14nqQXlIvgJOxGFTfhSoquYzjW8Yx-v9TqTBqRjiB7g0/edit


On Mon, Sep 2, 2013 at 9:36 AM, anil gupta <an...@gmail.com> wrote:

> @Ted: Is there any documentation for all significant HBase changes in 0.95
> / 0.96?
>
>
> On Fri, Aug 30, 2013 at 5:39 PM, Ted Yu <yu...@gmail.com> wrote:
>
> > -ROOT- table is gone in 0.95 / 0.96
> >
> > Looks like newer release of asynchbase is needed which can communicate
> with
> > 0.96 cluster.
> >
> > Cheers
> >
> >
> > On Fri, Aug 30, 2013 at 4:44 PM, S. Zhou <my...@yahoo.com> wrote:
> >
> > > I wrote a java program which connects to hbase (I am using asynchbase).
> > > At this time
> > > hbase/hadoop are all running on my local dev box as pseudo cluster. I
> > > believe hbase/hadoop are all setup correctly since I can create hbase
> > > tables, update hbase tables, run MR jobs etc.
> > >
> > > The problem is:
> > > when I use asynhbase connect hbase, I always get the following error
> > > message: (see more log entries at the bottom of this message)
> > >
> > > =2013-08-30 15:15:21,892 ERROR [main-EventThread]
> (HBaseClient.java:2860)
> > > - The znode for the -ROOT- region doesn't exist!
> > >
> > > I googled but could not find any answer. Your help is highly
> appreciated.
> > >
> > > Related info: I am using asynchbase 1.4.1, hadoop 1.2.0, hbase
> > > 0.95.1-hadoop1.  (The hbase client used by my Java is version 0.94.0. I
> > > could not find jar file for 0.95.1-hadoop1. It is listed on maven
> central
> > > repository but it seems mis-configured and I could not download it).
> > >
> > > Here are more detail log info:
> > > =2013-08-30 15:15:21,824  INFO [main] (ZooKeeper.java:433) - Initiating
> > > client connection, connectString=127.0.0.1:2181 sessionTimeout=5000
> > > watcher=org.hbase.async.
> > > HBaseClient$ZKClient@3d32e42f
> > > =2013-08-30 15:15:21,849  INFO [main] (HBaseClient.java:2695) - Need to
> > > find the -ROOT- region
> > > =2013-08-30 15:15:21,850  INFO [main-SendThread()]
> (ClientCnxn.java:933)
> > -
> > > Opening socket connection to server /127.0.0.1:2181
> > > =2013-08-30 15:15:21,853  INFO [main-SendThread(localhost:2181)]
> > > (ZooKeeperSaslClient.java:125) - Client will not SASL-authenticate
> > > because the default JAAS configuration section 'Client' could not be
> > > found. If you are not using SASL, you may ignore this. On the other
> > > hand, if you expected SASL to work, please fix your JAAS configuration.
> > > =2013-08-30 15:15:21,859  INFO [main-SendThread(localhost:2181)]
> > > (ClientCnxn.java:846) - Socket connection established to localhost/
> > > 127.0.0.1:2181, initiating session
> > > =2013-08-30 15:15:21,884  INFO [main-SendThread(localhost:2181)]
> > > (ClientCnxn.java:1175) - Session establishment complete on server
> > localhost/
> > > 127.0.0.1:2181, sessionid = 0x140d06a475e000d, negotiated timeout =
> 6000
> > > =2013-08-30 15:15:21,892 ERROR [main-EventThread]
> (HBaseClient.java:2860)
> > > - The znode for the -ROOT- region doesn't exist!
> >
>
>
>
> --
> Thanks & Regards,
> Anil Gupta
>

Re: Need Help on hbase error: The znode for the -ROOT- region doesn't exist!

Posted by anil gupta <an...@gmail.com>.
@Ted: Is there any documentation for all significant HBase changes in 0.95
/ 0.96?


On Fri, Aug 30, 2013 at 5:39 PM, Ted Yu <yu...@gmail.com> wrote:

> -ROOT- table is gone in 0.95 / 0.96
>
> Looks like newer release of asynchbase is needed which can communicate with
> 0.96 cluster.
>
> Cheers
>
>
> On Fri, Aug 30, 2013 at 4:44 PM, S. Zhou <my...@yahoo.com> wrote:
>
> > I wrote a java program which connects to hbase (I am using asynchbase).
> > At this time
> > hbase/hadoop are all running on my local dev box as pseudo cluster. I
> > believe hbase/hadoop are all setup correctly since I can create hbase
> > tables, update hbase tables, run MR jobs etc.
> >
> > The problem is:
> > when I use asynhbase connect hbase, I always get the following error
> > message: (see more log entries at the bottom of this message)
> >
> > =2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860)
> > - The znode for the -ROOT- region doesn't exist!
> >
> > I googled but could not find any answer. Your help is highly appreciated.
> >
> > Related info: I am using asynchbase 1.4.1, hadoop 1.2.0, hbase
> > 0.95.1-hadoop1.  (The hbase client used by my Java is version 0.94.0. I
> > could not find jar file for 0.95.1-hadoop1. It is listed on maven central
> > repository but it seems mis-configured and I could not download it).
> >
> > Here are more detail log info:
> > =2013-08-30 15:15:21,824  INFO [main] (ZooKeeper.java:433) - Initiating
> > client connection, connectString=127.0.0.1:2181 sessionTimeout=5000
> > watcher=org.hbase.async.
> > HBaseClient$ZKClient@3d32e42f
> > =2013-08-30 15:15:21,849  INFO [main] (HBaseClient.java:2695) - Need to
> > find the -ROOT- region
> > =2013-08-30 15:15:21,850  INFO [main-SendThread()] (ClientCnxn.java:933)
> -
> > Opening socket connection to server /127.0.0.1:2181
> > =2013-08-30 15:15:21,853  INFO [main-SendThread(localhost:2181)]
> > (ZooKeeperSaslClient.java:125) - Client will not SASL-authenticate
> > because the default JAAS configuration section 'Client' could not be
> > found. If you are not using SASL, you may ignore this. On the other
> > hand, if you expected SASL to work, please fix your JAAS configuration.
> > =2013-08-30 15:15:21,859  INFO [main-SendThread(localhost:2181)]
> > (ClientCnxn.java:846) - Socket connection established to localhost/
> > 127.0.0.1:2181, initiating session
> > =2013-08-30 15:15:21,884  INFO [main-SendThread(localhost:2181)]
> > (ClientCnxn.java:1175) - Session establishment complete on server
> localhost/
> > 127.0.0.1:2181, sessionid = 0x140d06a475e000d, negotiated timeout = 6000
> > =2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860)
> > - The znode for the -ROOT- region doesn't exist!
>



-- 
Thanks & Regards,
Anil Gupta

Re: Need Help on hbase error: The znode for the -ROOT- region doesn't exist!

Posted by Ted Yu <yu...@gmail.com>.
-ROOT- table is gone in 0.95 / 0.96

Looks like newer release of asynchbase is needed which can communicate with
0.96 cluster.

Cheers


On Fri, Aug 30, 2013 at 4:44 PM, S. Zhou <my...@yahoo.com> wrote:

> I wrote a java program which connects to hbase (I am using asynchbase).
> At this time
> hbase/hadoop are all running on my local dev box as pseudo cluster. I
> believe hbase/hadoop are all setup correctly since I can create hbase
> tables, update hbase tables, run MR jobs etc.
>
> The problem is:
> when I use asynhbase connect hbase, I always get the following error
> message: (see more log entries at the bottom of this message)
>
> =2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860)
> - The znode for the -ROOT- region doesn't exist!
>
> I googled but could not find any answer. Your help is highly appreciated.
>
> Related info: I am using asynchbase 1.4.1, hadoop 1.2.0, hbase
> 0.95.1-hadoop1.  (The hbase client used by my Java is version 0.94.0. I
> could not find jar file for 0.95.1-hadoop1. It is listed on maven central
> repository but it seems mis-configured and I could not download it).
>
> Here are more detail log info:
> =2013-08-30 15:15:21,824  INFO [main] (ZooKeeper.java:433) - Initiating
> client connection, connectString=127.0.0.1:2181 sessionTimeout=5000
> watcher=org.hbase.async.
> HBaseClient$ZKClient@3d32e42f
> =2013-08-30 15:15:21,849  INFO [main] (HBaseClient.java:2695) - Need to
> find the -ROOT- region
> =2013-08-30 15:15:21,850  INFO [main-SendThread()] (ClientCnxn.java:933) -
> Opening socket connection to server /127.0.0.1:2181
> =2013-08-30 15:15:21,853  INFO [main-SendThread(localhost:2181)]
> (ZooKeeperSaslClient.java:125) - Client will not SASL-authenticate
> because the default JAAS configuration section 'Client' could not be
> found. If you are not using SASL, you may ignore this. On the other
> hand, if you expected SASL to work, please fix your JAAS configuration.
> =2013-08-30 15:15:21,859  INFO [main-SendThread(localhost:2181)]
> (ClientCnxn.java:846) - Socket connection established to localhost/
> 127.0.0.1:2181, initiating session
> =2013-08-30 15:15:21,884  INFO [main-SendThread(localhost:2181)]
> (ClientCnxn.java:1175) - Session establishment complete on server localhost/
> 127.0.0.1:2181, sessionid = 0x140d06a475e000d, negotiated timeout = 6000
> =2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860)
> - The znode for the -ROOT- region doesn't exist!

Re: Need Help on hbase error: The znode for the -ROOT- region doesn't exist!

Posted by Mohammad Tariq <do...@gmail.com>.
Hello there,

Looks like some problem with RS holding the -ROOT-. Please make sure it's
up and running. Showing us the logs would be helpful.

Warm Regards,
Tariq
cloudfront.blogspot.com


On Sat, Aug 31, 2013 at 5:14 AM, S. Zhou <my...@yahoo.com> wrote:

> I wrote a java program which connects to hbase (I am using asynchbase).
> At this time
> hbase/hadoop are all running on my local dev box as pseudo cluster. I
> believe hbase/hadoop are all setup correctly since I can create hbase
> tables, update hbase tables, run MR jobs etc.
>
> The problem is:
> when I use asynhbase connect hbase, I always get the following error
> message: (see more log entries at the bottom of this message)
>
> =2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860)
> - The znode for the -ROOT- region doesn't exist!
>
> I googled but could not find any answer. Your help is highly appreciated.
>
> Related info: I am using asynchbase 1.4.1, hadoop 1.2.0, hbase
> 0.95.1-hadoop1.  (The hbase client used by my Java is version 0.94.0. I
> could not find jar file for 0.95.1-hadoop1. It is listed on maven central
> repository but it seems mis-configured and I could not download it).
>
> Here are more detail log info:
> =2013-08-30 15:15:21,824  INFO [main] (ZooKeeper.java:433) - Initiating
> client connection, connectString=127.0.0.1:2181 sessionTimeout=5000
> watcher=org.hbase.async.
> HBaseClient$ZKClient@3d32e42f
> =2013-08-30 15:15:21,849  INFO [main] (HBaseClient.java:2695) - Need to
> find the -ROOT- region
> =2013-08-30 15:15:21,850  INFO [main-SendThread()] (ClientCnxn.java:933) -
> Opening socket connection to server /127.0.0.1:2181
> =2013-08-30 15:15:21,853  INFO [main-SendThread(localhost:2181)]
> (ZooKeeperSaslClient.java:125) - Client will not SASL-authenticate
> because the default JAAS configuration section 'Client' could not be
> found. If you are not using SASL, you may ignore this. On the other
> hand, if you expected SASL to work, please fix your JAAS configuration.
> =2013-08-30 15:15:21,859  INFO [main-SendThread(localhost:2181)]
> (ClientCnxn.java:846) - Socket connection established to localhost/
> 127.0.0.1:2181, initiating session
> =2013-08-30 15:15:21,884  INFO [main-SendThread(localhost:2181)]
> (ClientCnxn.java:1175) - Session establishment complete on server localhost/
> 127.0.0.1:2181, sessionid = 0x140d06a475e000d, negotiated timeout = 6000
> =2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860)
> - The znode for the -ROOT- region doesn't exist!

Need Help on hbase error: The znode for the -ROOT- region doesn't exist!

Posted by "S. Zhou" <my...@yahoo.com>.
I wrote a java program which connects to hbase (I am using asynchbase).  At this time 
hbase/hadoop are all running on my local dev box as pseudo cluster. I 
believe hbase/hadoop are all setup correctly since I can create hbase 
tables, update hbase tables, run MR jobs etc. 

The problem is: 
when I use asynhbase connect hbase, I always get the following error 
message: (see more log entries at the bottom of this message)

=2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860) - The znode for the -ROOT- region doesn't exist!

I googled but could not find any answer. Your help is highly appreciated.

Related info: I am using asynchbase 1.4.1, hadoop 1.2.0, hbase 0.95.1-hadoop1.  (The hbase client used by my Java is version 0.94.0. I could not find jar file for 0.95.1-hadoop1. It is listed on maven central repository but it seems mis-configured and I could not download it).

Here are more detail log info:
=2013-08-30 15:15:21,824  INFO [main] (ZooKeeper.java:433) - Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=5000 watcher=org.hbase.async.
HBaseClient$ZKClient@3d32e42f
=2013-08-30 15:15:21,849  INFO [main] (HBaseClient.java:2695) - Need to find the -ROOT- region
=2013-08-30 15:15:21,850  INFO [main-SendThread()] (ClientCnxn.java:933) - Opening socket connection to server /127.0.0.1:2181
=2013-08-30 15:15:21,853  INFO [main-SendThread(localhost:2181)] (ZooKeeperSaslClient.java:125) - Client will not SASL-authenticate 
because the default JAAS configuration section 'Client' could not be 
found. If you are not using SASL, you may ignore this. On the other 
hand, if you expected SASL to work, please fix your JAAS configuration.
=2013-08-30 15:15:21,859  INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:846) - Socket connection established to localhost/127.0.0.1:2181, initiating session
=2013-08-30 15:15:21,884  INFO [main-SendThread(localhost:2181)] (ClientCnxn.java:1175) - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x140d06a475e000d, negotiated timeout = 6000
=2013-08-30 15:15:21,892 ERROR [main-EventThread] (HBaseClient.java:2860) - The znode for the -ROOT- region doesn't exist!

Re: where to download 0.95.1-hadoop1 jar file using Maven?

Posted by "S. Zhou" <my...@yahoo.com>.
Stack, for your following comments: I tried to download from maven central but also failed


We also just put out a 0.95.2.  It looks like I actually 'released' the
maven artifacts.  You could try these?  Our 0.95.1 maven release was
incorrect anyways, if you wanted to use hadoop2.


________________________________
 From: Stack <st...@duboce.net>
To: Hbase-User <us...@hbase.apache.org>; S. Zhou <my...@yahoo.com> 
Sent: Saturday, August 17, 2013 4:42 PM
Subject: Re: where to download 0.95.1-hadoop1 jar file using Maven?
 

On Thu, Aug 15, 2013 at 7:50 PM, S. Zhou <my...@yahoo.com> wrote:

> Hi there,
>     I am writing Java program to access HBase and the version of Hbase I
> use is  0.95.1-hadoop1.  The problem is: I failed to download the jar file
> for this version from Maven central repository even though it is listed at
> the Maven central repository (
> http://mvnrepository.com/artifact/org.apache.hbase/hbase/0.95.1-hadoop1):
>
> <dependency>
>     <groupId>org.apache.hbase</groupId>
>     <artifactId>hbase</artifactId>
>     <version>0.95.1-hadoop1</version>
> </dependency>
>
> The error message is: Could not find artifact
> org.apache.hbase:hbase:jar:0.95.1-hadoop1
>
>
> BTW, I can successfully download other versions like 0.94.0. Any idea?
>

Run your mvn w/ debug (-X).  It'll give more info on download issues.

We also just put out a 0.95.2.  It looks like I actually 'released' the
maven artifacts.  You could try these?  Our 0.95.1 maven release was
incorrect anyways, if you wanted to use hadoop2.

St.Ack

Re: where to download 0.95.1-hadoop1 jar file using Maven?

Posted by Stack <st...@duboce.net>.
On Thu, Aug 15, 2013 at 7:50 PM, S. Zhou <my...@yahoo.com> wrote:

> Hi there,
>     I am writing Java program to access HBase and the version of Hbase I
> use is  0.95.1-hadoop1.  The problem is: I failed to download the jar file
> for this version from Maven central repository even though it is listed at
> the Maven central repository (
> http://mvnrepository.com/artifact/org.apache.hbase/hbase/0.95.1-hadoop1):
>
> <dependency>
>     <groupId>org.apache.hbase</groupId>
>     <artifactId>hbase</artifactId>
>     <version>0.95.1-hadoop1</version>
> </dependency>
>
> The error message is: Could not find artifact
> org.apache.hbase:hbase:jar:0.95.1-hadoop1
>
>
> BTW, I can successfully download other versions like 0.94.0. Any idea?
>

Run your mvn w/ debug (-X).  It'll give more info on download issues.

We also just put out a 0.95.2.  It looks like I actually 'released' the
maven artifacts.  You could try these?  Our 0.95.1 maven release was
incorrect anyways, if you wanted to use hadoop2.

St.Ack

Re: where to download old versions of HBase?

Posted by lars hofhansl <la...@apache.org>.
If was suggested that having too many version up on the download site is too confusing, so I removed them.
The svn tags are still there (and they will not be removed).

In order to get the sources for 0.94.0 you can do:
svn checkout http://svn.apache.org/repos/asf/hbase/tags/0.94.0 hbase-0.94.0


You'd then have to build it yourself.

-- Lars
________________________________
From: S. Zhou <my...@yahoo.com>
To: "user@hbase.apache.org" <us...@hbase.apache.org> 
Sent: Thursday, August 15, 2013 7:53 PM
Subject: where to download old versions of HBase?


>From HBase web site, I can only find the recent versions of HBase (e.g. http://mirror.esocc.com/apache/hbase/). I like to download version 0.94.0, any idea where can I find it? Thanks!

Re: where to download old versions of HBase?

Posted by "S. Zhou" <my...@yahoo.com>.
Thanks Ted. I will try that



________________________________
 From: Ted Yu <yu...@gmail.com>
To: S. Zhou <my...@yahoo.com>; "user@hbase.apache.org" <us...@hbase.apache.org> 
Sent: Friday, August 16, 2013 12:11 PM
Subject: Re: where to download old versions of HBase?
 


Putting back user mailing list.

bq. rebuild hbase using slf4j 1.7

Can you try ?

Thanks



On Thu, Aug 15, 2013 at 8:57 PM, S. Zhou <my...@yahoo.com> wrote:

I did not try to rebuild hbase using slf4j 1.7. I looked into the jar file and found the dependencies (and their versions).
>
>
>
>
>
>
>________________________________
> From: Ted Yu <yu...@gmail.com>
>To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <my...@yahoo.com> 
>Sent: Friday, August 16, 2013 11:39 AM
>
>Subject: Re: where to download old versions of HBase?
> 
>
>
>bq.  0.94.0 using higher version of slf4j
>
>
>How did you find out the above ?
>
>
>Have you tried rebuilding HBase 0.94 yourself with slf4j 1.7 ?
>
>
>Cheers
>
>
>
>On Thu, Aug 15, 2013 at 8:22 PM, S. Zhou <my...@yahoo.com> wrote:
>
>It's a long story. I am using asynchbase as a client and it uses slf4j version 1.7.x. But the HBase jar file with version 0.95.x or 0.94.9 above (downloaded from Maven repository) uses slf4j version like 1.4.x something. So it complains the version incompatibility and does not allow me to use asynchbase. I found HBase version 0.94.0 using higher version of slf4j (which is wired).  Now the problem is: I use HBase client with version 0.94.0 but the HBase server is 0.95-hadoop1 and I run into some wired issues. So I like to try HBase server with version 0.94.0.
>>
>>
>>
>>
>>
>>
>>
>>________________________________
>> From: Ted Yu <yu...@gmail.com>
>>To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <my...@yahoo.com>
>>Sent: Friday, August 16, 2013 11:04 AM
>>Subject: Re: where to download old versions of HBase?
>>
>>
>>
>>I couldn't find the download either.
>>
>>May I ask why you wanted such an old release ?
>>
>>0.94.11 is coming out.
>>
>>
>>On Thu, Aug 15, 2013 at 7:53 PM, S. Zhou <my...@yahoo.com> wrote:
>>
>>> From HBase web site, I can only find the recent versions of HBase (e.g.
>>> http://mirror.esocc.com/apache/hbase/). I like to download version
>>> 0.94.0, any idea where can I find it? Thanks!
>
>
>

Re: where to download old versions of HBase?

Posted by Ted Yu <yu...@gmail.com>.
Putting back user mailing list.

bq. rebuild hbase using slf4j 1.7

Can you try ?

Thanks


On Thu, Aug 15, 2013 at 8:57 PM, S. Zhou <my...@yahoo.com> wrote:

> I did not try to rebuild hbase using slf4j 1.7. I looked into the jar file
> and found the dependencies (and their versions).
>
>
>   ------------------------------
>  *From:* Ted Yu <yu...@gmail.com>
> *To:* "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <
> myxjtu@yahoo.com>
> *Sent:* Friday, August 16, 2013 11:39 AM
>
> *Subject:* Re: where to download old versions of HBase?
>
> bq.  0.94.0 using higher version of slf4j
>
> How did you find out the above ?
>
> Have you tried rebuilding HBase 0.94 yourself with slf4j 1.7 ?
>
> Cheers
>
>
> On Thu, Aug 15, 2013 at 8:22 PM, S. Zhou <my...@yahoo.com> wrote:
>
> It's a long story. I am using asynchbase as a client and it uses slf4j
> version 1.7.x. But the HBase jar file with version 0.95.x or 0.94.9 above
> (downloaded from Maven repository) uses slf4j version like 1.4.x something.
> So it complains the version incompatibility and does not allow me to use
> asynchbase. I found HBase version 0.94.0 using higher version of slf4j
> (which is wired).  Now the problem is: I use HBase client with version
> 0.94.0 but the HBase server is 0.95-hadoop1 and I run into some wired
> issues. So I like to try HBase server with version 0.94.0.
>
>
>
>
>
>
> ________________________________
>  From: Ted Yu <yu...@gmail.com>
> To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <
> myxjtu@yahoo.com>
> Sent: Friday, August 16, 2013 11:04 AM
> Subject: Re: where to download old versions of HBase?
>
>
> I couldn't find the download either.
>
> May I ask why you wanted such an old release ?
>
> 0.94.11 is coming out.
>
>
> On Thu, Aug 15, 2013 at 7:53 PM, S. Zhou <my...@yahoo.com> wrote:
>
> > From HBase web site, I can only find the recent versions of HBase (e.g.
> > http://mirror.esocc.com/apache/hbase/). I like to download version
> > 0.94.0, any idea where can I find it? Thanks!
>
>
>
>
>

Re: where to download old versions of HBase?

Posted by Ted Yu <yu...@gmail.com>.
bq.  0.94.0 using higher version of slf4j

How did you find out the above ?

Have you tried rebuilding HBase 0.94 yourself with slf4j 1.7 ?

Cheers


On Thu, Aug 15, 2013 at 8:22 PM, S. Zhou <my...@yahoo.com> wrote:

> It's a long story. I am using asynchbase as a client and it uses slf4j
> version 1.7.x. But the HBase jar file with version 0.95.x or 0.94.9 above
> (downloaded from Maven repository) uses slf4j version like 1.4.x something.
> So it complains the version incompatibility and does not allow me to use
> asynchbase. I found HBase version 0.94.0 using higher version of slf4j
> (which is wired).  Now the problem is: I use HBase client with version
> 0.94.0 but the HBase server is 0.95-hadoop1 and I run into some wired
> issues. So I like to try HBase server with version 0.94.0.
>
>
>
>
>
>
> ________________________________
>  From: Ted Yu <yu...@gmail.com>
> To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <
> myxjtu@yahoo.com>
> Sent: Friday, August 16, 2013 11:04 AM
> Subject: Re: where to download old versions of HBase?
>
>
> I couldn't find the download either.
>
> May I ask why you wanted such an old release ?
>
> 0.94.11 is coming out.
>
>
> On Thu, Aug 15, 2013 at 7:53 PM, S. Zhou <my...@yahoo.com> wrote:
>
> > From HBase web site, I can only find the recent versions of HBase (e.g.
> > http://mirror.esocc.com/apache/hbase/). I like to download version
> > 0.94.0, any idea where can I find it? Thanks!
>

Re: where to download old versions of HBase?

Posted by "S. Zhou" <my...@yahoo.com>.
It's a long story. I am using asynchbase as a client and it uses slf4j version 1.7.x. But the HBase jar file with version 0.95.x or 0.94.9 above (downloaded from Maven repository) uses slf4j version like 1.4.x something. So it complains the version incompatibility and does not allow me to use asynchbase. I found HBase version 0.94.0 using higher version of slf4j (which is wired).  Now the problem is: I use HBase client with version 0.94.0 but the HBase server is 0.95-hadoop1 and I run into some wired issues. So I like to try HBase server with version 0.94.0.






________________________________
 From: Ted Yu <yu...@gmail.com>
To: "user@hbase.apache.org" <us...@hbase.apache.org>; S. Zhou <my...@yahoo.com> 
Sent: Friday, August 16, 2013 11:04 AM
Subject: Re: where to download old versions of HBase?
 

I couldn't find the download either.

May I ask why you wanted such an old release ?

0.94.11 is coming out.


On Thu, Aug 15, 2013 at 7:53 PM, S. Zhou <my...@yahoo.com> wrote:

> From HBase web site, I can only find the recent versions of HBase (e.g.
> http://mirror.esocc.com/apache/hbase/). I like to download version
> 0.94.0, any idea where can I find it? Thanks!

Re: where to download old versions of HBase?

Posted by Ted Yu <yu...@gmail.com>.
I couldn't find the download either.

May I ask why you wanted such an old release ?

0.94.11 is coming out.


On Thu, Aug 15, 2013 at 7:53 PM, S. Zhou <my...@yahoo.com> wrote:

> From HBase web site, I can only find the recent versions of HBase (e.g.
> http://mirror.esocc.com/apache/hbase/). I like to download version
> 0.94.0, any idea where can I find it? Thanks!

where to download old versions of HBase?

Posted by "S. Zhou" <my...@yahoo.com>.
>From HBase web site, I can only find the recent versions of HBase (e.g. http://mirror.esocc.com/apache/hbase/). I like to download version 0.94.0, any idea where can I find it? Thanks!

where to download 0.95.1-hadoop1 jar file using Maven?

Posted by "S. Zhou" <my...@yahoo.com>.
Hi there,
    I am writing Java program to access HBase and the version of Hbase I use is  0.95.1-hadoop1.  The problem is: I failed to download the jar file for this version from Maven central repository even though it is listed at the Maven central repository (http://mvnrepository.com/artifact/org.apache.hbase/hbase/0.95.1-hadoop1):

<dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase</artifactId>
    <version>0.95.1-hadoop1</version>
</dependency>

The error message is: Could not find artifact org.apache.hbase:hbase:jar:0.95.1-hadoop1 


BTW, I can successfully download other versions like 0.94.0. Any idea?

Thanks

Re: ZK-related issue when updating from 0.94.6 to 0.94.8

Posted by Ted Yu <yu...@gmail.com>.
w.r.t. the strange error mentioned at the bottom of the email, it came
from connectionEvent():

        if (this.recoverableZooKeeper == null) {
          LOG.error("ZK is null on connection event -- see stack trace " +
            "for the stack trace when constructor was called on this zkw",
            this.constructorCaller);
          throw new NullPointerException("ZK is null");
        }

this.constructorCaller was filled out in the constructor.
The error indicated that the following call wasn't successful (line 153 in
ZooKeeperWatcher ctor)

    this.recoverableZooKeeper = ZKUtil.connect(conf, quorum, this,
descriptor);

Can you check more of the RS log ?

zookeeper log may reveal something as well.

Cheers

On Fri, Jul 12, 2013 at 3:32 PM, Adrien Mogenet <ad...@gmail.com>wrote:

> Hi there,
>
> I'm trying to upgrade from 0.94.6 (distributed mode) to 0.94.8 and I'm
> seeing strange WARN messages leading in region-less regionserver once
> updated.
>
> Here is the kind of lines I can find:
>
> > WARN org.apache.hadoop.hbase.zookeeper.ZKAssign:
> regionserver:60020-0x23d207e751d20c4 Attempt to transition the unassigned
> node for 9a
> eb2d2c3e878ee50ad4806dd3488c15 from M_ZK_REGION_OFFLINE to
> RS_ZK_REGION_OPENING failed, the node existed but was in the state
> M_SERVER_SHUTDOWN set by the server my-server.org,60020,1373289114184
>
> I've uploaded a longer extract including DEBUG traces to Pastebin:
> http://pastebin.com/raw.php?i=Me2esbPF
>
> I've performed as usual: stopping the RS, updating HBase binaries and
> libraries, then starting the RS... When digging into the log file, I can
> read one strange error ZK-related ("ZKW CONSTRUCTOR STACK TRACE FOR
> DEBUGGING"), see complete trace here:
> http://pastebin.com/raw.php?i=7wy0wdNq
>
> Any idea?
> --
> Adrien Mogenet
> http://www.borntosegfault.com
>