You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Jean-Daniel Cryans <jd...@apache.org> on 2009/02/11 15:12:30 UTC

Re: Hbase first run problem

Taking this into dev.

Should we do something smarter than failing this way even tho it is clearly
written to not create that folder? Like, if the version file doesn't exist
BUT that folder is empty, continue anyway with the bootstrap.

J-D

On Wed, Feb 11, 2009 at 8:37 AM, Sergey Bartunov <sb...@gmail.com> wrote:

> Thank you. Now it works
>
> 2009/2/11 Ryan Rawson <ry...@gmail.com>:
> > Do:
> > hadoop fs -rmr /hbase
> >
> > and try again.
> >
> > HBase will auto-create the /hbase dir on the first run.
> >
> > -ryan
> >
> > On Wed, Feb 11, 2009 at 1:50 AM, Sergey Bartunov <sb...@gmail.com>
> wrote:
> >
> >> Hi. I'm trying to make hbase (0.19) running on my ubuntu 8.10. Hadoop
> >> (0.19) already works in single-node mode:
> >>
> >> <configuration>
> >>  <property>
> >>    <name>fs.default.name</name>
> >>    <value>hdfs://localhost:9000</value>
> >>  </property>
> >>  <property>
> >>    <name>mapred.job.tracker</name>
> >>    <value>localhost:9001</value>
> >>  </property>
> >>  <property>
> >>    <name>dfs.replication</name>
> >>    <value>1</value>
> >>  </property>
> >> </configuration>
> >>
> >> I've formatted namenode and created /hbase directory, which is
> >> specified in hbase-site.xml:
> >>
> >> <configuration>
> >>  <property>
> >>     <name>hbase.master</name>
> >>     <value>localhost:60000</value>
> >>     <description>The host and port that the HBase master runs
> >> at</description>
> >>   </property>
> >>
> >>   <property>
> >>     <name>hbase.rootdir</name>
> >>     <value>hdfs://localhost:9000/hbase</value>
> >>     <description>location of HBase instance in dfs</description>
> >>   </property>
> >>
> >> </configuration>
> >>
> >> When I try to hbase/bin/start-hbase.sh HMaster falls with warning:
> >>
> >> WARNING! File system needs to be upgraded. Run the
> >> '${HBASE_HOME}/bin/hbase migrate' script.
> >>
> >> But I can't upgrade because file hbase.version doesn't exist and I
> >> don't understand why I need to upgrade if I use the last version of
> >> hadoop. Also I have no idea how to get hbase.version file.
> >> What I have to do to make this work? Thanks in advance
> >>
> >> --
> >> Rideamus!
> >>
> >
>
>
>
> --
> Rideamus!
>

Re: Hbase first run problem

Posted by Jean-Daniel Cryans <jd...@apache.org>.
HBASE-1195

J-D

On Wed, Feb 11, 2009 at 1:13 PM, stack <st...@duboce.net> wrote:

> Yes. In fact, its probably safe-to-do now we've left far behind the
> pre-history versions of hbase where there was no hbase.version file in the
> hbase.rootdir.  If absent, lets proceed and just write it rather than treat
> it as a non-migrated instance.  Want to open an issue jd?
> St.Ack
>
> On Wed, Feb 11, 2009 at 6:12 AM, Jean-Daniel Cryans <jdcryans@apache.org
> >wrote:
>
> > Taking this into dev.
> >
> > Should we do something smarter than failing this way even tho it is
> clearly
> > written to not create that folder? Like, if the version file doesn't
> exist
> > BUT that folder is empty, continue anyway with the bootstrap.
> >
> > J-D
> >
> > On Wed, Feb 11, 2009 at 8:37 AM, Sergey Bartunov <sb...@gmail.com>
> > wrote:
> >
> > > Thank you. Now it works
> > >
> > > 2009/2/11 Ryan Rawson <ry...@gmail.com>:
> > > > Do:
> > > > hadoop fs -rmr /hbase
> > > >
> > > > and try again.
> > > >
> > > > HBase will auto-create the /hbase dir on the first run.
> > > >
> > > > -ryan
> > > >
> > > > On Wed, Feb 11, 2009 at 1:50 AM, Sergey Bartunov <sbos.net@gmail.com
> >
> > > wrote:
> > > >
> > > >> Hi. I'm trying to make hbase (0.19) running on my ubuntu 8.10.
> Hadoop
> > > >> (0.19) already works in single-node mode:
> > > >>
> > > >> <configuration>
> > > >>  <property>
> > > >>    <name>fs.default.name</name>
> > > >>    <value>hdfs://localhost:9000</value>
> > > >>  </property>
> > > >>  <property>
> > > >>    <name>mapred.job.tracker</name>
> > > >>    <value>localhost:9001</value>
> > > >>  </property>
> > > >>  <property>
> > > >>    <name>dfs.replication</name>
> > > >>    <value>1</value>
> > > >>  </property>
> > > >> </configuration>
> > > >>
> > > >> I've formatted namenode and created /hbase directory, which is
> > > >> specified in hbase-site.xml:
> > > >>
> > > >> <configuration>
> > > >>  <property>
> > > >>     <name>hbase.master</name>
> > > >>     <value>localhost:60000</value>
> > > >>     <description>The host and port that the HBase master runs
> > > >> at</description>
> > > >>   </property>
> > > >>
> > > >>   <property>
> > > >>     <name>hbase.rootdir</name>
> > > >>     <value>hdfs://localhost:9000/hbase</value>
> > > >>     <description>location of HBase instance in dfs</description>
> > > >>   </property>
> > > >>
> > > >> </configuration>
> > > >>
> > > >> When I try to hbase/bin/start-hbase.sh HMaster falls with warning:
> > > >>
> > > >> WARNING! File system needs to be upgraded. Run the
> > > >> '${HBASE_HOME}/bin/hbase migrate' script.
> > > >>
> > > >> But I can't upgrade because file hbase.version doesn't exist and I
> > > >> don't understand why I need to upgrade if I use the last version of
> > > >> hadoop. Also I have no idea how to get hbase.version file.
> > > >> What I have to do to make this work? Thanks in advance
> > > >>
> > > >> --
> > > >> Rideamus!
> > > >>
> > > >
> > >
> > >
> > >
> > > --
> > > Rideamus!
> > >
> >
>

Re: Hbase first run problem

Posted by stack <st...@duboce.net>.
Yes. In fact, its probably safe-to-do now we've left far behind the
pre-history versions of hbase where there was no hbase.version file in the
hbase.rootdir.  If absent, lets proceed and just write it rather than treat
it as a non-migrated instance.  Want to open an issue jd?
St.Ack

On Wed, Feb 11, 2009 at 6:12 AM, Jean-Daniel Cryans <jd...@apache.org>wrote:

> Taking this into dev.
>
> Should we do something smarter than failing this way even tho it is clearly
> written to not create that folder? Like, if the version file doesn't exist
> BUT that folder is empty, continue anyway with the bootstrap.
>
> J-D
>
> On Wed, Feb 11, 2009 at 8:37 AM, Sergey Bartunov <sb...@gmail.com>
> wrote:
>
> > Thank you. Now it works
> >
> > 2009/2/11 Ryan Rawson <ry...@gmail.com>:
> > > Do:
> > > hadoop fs -rmr /hbase
> > >
> > > and try again.
> > >
> > > HBase will auto-create the /hbase dir on the first run.
> > >
> > > -ryan
> > >
> > > On Wed, Feb 11, 2009 at 1:50 AM, Sergey Bartunov <sb...@gmail.com>
> > wrote:
> > >
> > >> Hi. I'm trying to make hbase (0.19) running on my ubuntu 8.10. Hadoop
> > >> (0.19) already works in single-node mode:
> > >>
> > >> <configuration>
> > >>  <property>
> > >>    <name>fs.default.name</name>
> > >>    <value>hdfs://localhost:9000</value>
> > >>  </property>
> > >>  <property>
> > >>    <name>mapred.job.tracker</name>
> > >>    <value>localhost:9001</value>
> > >>  </property>
> > >>  <property>
> > >>    <name>dfs.replication</name>
> > >>    <value>1</value>
> > >>  </property>
> > >> </configuration>
> > >>
> > >> I've formatted namenode and created /hbase directory, which is
> > >> specified in hbase-site.xml:
> > >>
> > >> <configuration>
> > >>  <property>
> > >>     <name>hbase.master</name>
> > >>     <value>localhost:60000</value>
> > >>     <description>The host and port that the HBase master runs
> > >> at</description>
> > >>   </property>
> > >>
> > >>   <property>
> > >>     <name>hbase.rootdir</name>
> > >>     <value>hdfs://localhost:9000/hbase</value>
> > >>     <description>location of HBase instance in dfs</description>
> > >>   </property>
> > >>
> > >> </configuration>
> > >>
> > >> When I try to hbase/bin/start-hbase.sh HMaster falls with warning:
> > >>
> > >> WARNING! File system needs to be upgraded. Run the
> > >> '${HBASE_HOME}/bin/hbase migrate' script.
> > >>
> > >> But I can't upgrade because file hbase.version doesn't exist and I
> > >> don't understand why I need to upgrade if I use the last version of
> > >> hadoop. Also I have no idea how to get hbase.version file.
> > >> What I have to do to make this work? Thanks in advance
> > >>
> > >> --
> > >> Rideamus!
> > >>
> > >
> >
> >
> >
> > --
> > Rideamus!
> >
>