You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "thopham.asnet" <th...@gmail.com> on 2008/07/24 11:53:58 UTC
Cannot start HBase master with HDFS
Hi All,
I cannot start HBase master when setting root directory of HBase is a
folder in HDFS.
Hadoop version: 0.17.1
HBase version: 0.2.0
My hbase-site.xml configuration file
<configuration>
<property>
<name>hbase.master</name>
<value>192.168.1.5:60000</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.1.5:50000/hbase</value>
</property>
</configuration>
HDFS is already formated. The HDFS server started OK. The hbase folder
is existed in hdfs://192.168.1.5:50000.
The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
folder.
But I cannot start HBase master. Please see the log file.
----------------------- LOG file
-----------------------------------------------------------
2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
Not starting HMaster because:
org.apache.hadoop.hbase.util.FileSystemVersionException: File system
needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
at
org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
Can not start master
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException: File
system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate'
script.
at
org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
... 6 more
--------------------------------------------------------------------------------------------------
I don't know why system tells me have to migrate the file system. I know
that, hbase-0.2.0 is available with hadoop-0.17.1.
Please help me.
Best regards,
Tho Pham
Re: Cannot start HBase master with HDFS
Posted by Tho Pham <th...@gmail.com>.
Thank you, Ruben and Jean-Daniel. I try now.
2008/7/24 Ruben de Laat <ru...@symbaloo.com>:
> Hi jean-Daniel,
>
> Thnx for the clearing up :).
> Been testing HBase for the last 2 days, really liking it!
>
>
> Jean-Daniel Cryans wrote:
>
>> I'd like to correct things up a bit.
>>
>> HBase never required to have an 'hbase' folder already existing. In fact,
>> if
>> it exists and that the hbase.version file does not exist it will complain
>> like it did to Tho Pham. So delete the folder and everything should be
>> fine.
>>
>> Happy HBase'ing!
>>
>> J-D
>>
>> On Thu, Jul 24, 2008 at 7:00 AM, Ruben de Laat <ru...@symbaloo.com>
>> wrote:
>>
>>
>>
>>> Please see my other reply on you original question.
>>> You sentence 'The hbase folder is existed in hdfs://192.168.1.5:50000.',
>>> should not be the case, when you delete it things will work fine, your
>>> configuration file can stay the same.
>>>
>>>
>>> thopham.asnet wrote:
>>>
>>>
>>>
>>>> Hi Ruben,
>>>>
>>>> Sure. I had to start HDFS and then create a 'hbase' folder as the root
>>>> directory of HBase, like you see in the configuration file.
>>>>
>>>> Thanks for your quick response.
>>>>
>>>> Ruben de Laat wrote:
>>>>
>>>>
>>>>
>>>>> Hi Tho,
>>>>>
>>>>> As fat as I know, with version 0.2.0 there must be either no hbase dir,
>>>>> of an already initialized one.
>>>>>
>>>>> Good luck
>>>>>
>>>>> thopham.asnet wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I cannot start HBase master when setting root directory of HBase is a
>>>>>> folder in HDFS.
>>>>>>
>>>>>> Hadoop version: 0.17.1
>>>>>> HBase version: 0.2.0
>>>>>>
>>>>>> My hbase-site.xml configuration file
>>>>>>
>>>>>> <configuration>
>>>>>> <property>
>>>>>> <name>hbase.master</name>
>>>>>> <value>192.168.1.5:60000</value>
>>>>>> </property>
>>>>>> <property>
>>>>>> <name>hbase.rootdir</name>
>>>>>> <value>hdfs://192.168.1.5:50000/hbase</value>
>>>>>> </property>
>>>>>> </configuration>
>>>>>>
>>>>>> HDFS is already formated. The HDFS server started OK. The hbase folder
>>>>>> is existed in hdfs://192.168.1.5:50000.
>>>>>> The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
>>>>>> folder.
>>>>>>
>>>>>> But I cannot start HBase master. Please see the log file.
>>>>>>
>>>>>> ----------------------- LOG file
>>>>>> -----------------------------------------------------------
>>>>>> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
>>>>>> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
>>>>>> 2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
>>>>>> Not starting HMaster because:
>>>>>> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
>>>>>> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate'
>>>>>> script.
>>>>>> at
>>>>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>>>>> at
>>>>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>>>>> at
>>>>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>>>> Method)
>>>>>> at
>>>>>>
>>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>>
>>>>>> at
>>>>>>
>>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>>
>>>>>> at
>>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>>>> at
>>>>>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>>>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>>>>> 2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
>>>>>> Can not start master
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>>>> Method)
>>>>>> at
>>>>>>
>>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>>
>>>>>> at
>>>>>>
>>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>>
>>>>>> at
>>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>>>> at
>>>>>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>>>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>>>>> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException:
>>>>>> File
>>>>>> system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate'
>>>>>> script.
>>>>>> at
>>>>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>>>>> at
>>>>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>>>>> at
>>>>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>>>>> ... 6 more
>>>>>>
>>>>>> --------------------------------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> I don't know why system tells me have to migrate the file system. I
>>>>>> know
>>>>>> that, hbase-0.2.0 is available with hadoop-0.17.1.
>>>>>>
>>>>>> Please help me.
>>>>>>
>>>>>> Best regards,
>>>>>> Tho Pham
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>
>>
>
--
AsNet Software Department
Add: 604 Nui Thanh st - Hai Chau district - Da Nang city.
Cell: (+84) 905-001246
Re: Cannot start HBase master with HDFS
Posted by Ruben de Laat <ru...@symbaloo.com>.
Hi jean-Daniel,
Thnx for the clearing up :).
Been testing HBase for the last 2 days, really liking it!
Jean-Daniel Cryans wrote:
> I'd like to correct things up a bit.
>
> HBase never required to have an 'hbase' folder already existing. In fact, if
> it exists and that the hbase.version file does not exist it will complain
> like it did to Tho Pham. So delete the folder and everything should be fine.
>
> Happy HBase'ing!
>
> J-D
>
> On Thu, Jul 24, 2008 at 7:00 AM, Ruben de Laat <ru...@symbaloo.com> wrote:
>
>
>> Please see my other reply on you original question.
>> You sentence 'The hbase folder is existed in hdfs://192.168.1.5:50000.',
>> should not be the case, when you delete it things will work fine, your
>> configuration file can stay the same.
>>
>>
>> thopham.asnet wrote:
>>
>>
>>> Hi Ruben,
>>>
>>> Sure. I had to start HDFS and then create a 'hbase' folder as the root
>>> directory of HBase, like you see in the configuration file.
>>>
>>> Thanks for your quick response.
>>>
>>> Ruben de Laat wrote:
>>>
>>>
>>>> Hi Tho,
>>>>
>>>> As fat as I know, with version 0.2.0 there must be either no hbase dir,
>>>> of an already initialized one.
>>>>
>>>> Good luck
>>>>
>>>> thopham.asnet wrote:
>>>>
>>>>
>>>>> Hi All,
>>>>>
>>>>> I cannot start HBase master when setting root directory of HBase is a
>>>>> folder in HDFS.
>>>>>
>>>>> Hadoop version: 0.17.1
>>>>> HBase version: 0.2.0
>>>>>
>>>>> My hbase-site.xml configuration file
>>>>>
>>>>> <configuration>
>>>>> <property>
>>>>> <name>hbase.master</name>
>>>>> <value>192.168.1.5:60000</value>
>>>>> </property>
>>>>> <property>
>>>>> <name>hbase.rootdir</name>
>>>>> <value>hdfs://192.168.1.5:50000/hbase</value>
>>>>> </property>
>>>>> </configuration>
>>>>>
>>>>> HDFS is already formated. The HDFS server started OK. The hbase folder
>>>>> is existed in hdfs://192.168.1.5:50000.
>>>>> The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
>>>>> folder.
>>>>>
>>>>> But I cannot start HBase master. Please see the log file.
>>>>>
>>>>> ----------------------- LOG file
>>>>> -----------------------------------------------------------
>>>>> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
>>>>> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
>>>>> 2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
>>>>> Not starting HMaster because:
>>>>> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
>>>>> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
>>>>> at
>>>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>>> Method)
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>>> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>>>> 2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
>>>>> Can not start master
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>>> Method)
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>>> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>>>> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException: File
>>>>> system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate'
>>>>> script.
>>>>> at
>>>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>>>> ... 6 more
>>>>> --------------------------------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> I don't know why system tells me have to migrate the file system. I know
>>>>> that, hbase-0.2.0 is available with hadoop-0.17.1.
>>>>>
>>>>> Please help me.
>>>>>
>>>>> Best regards,
>>>>> Tho Pham
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>
>
Re: Cannot start HBase master with HDFS
Posted by Jean-Daniel Cryans <jd...@gmail.com>.
I'd like to correct things up a bit.
HBase never required to have an 'hbase' folder already existing. In fact, if
it exists and that the hbase.version file does not exist it will complain
like it did to Tho Pham. So delete the folder and everything should be fine.
Happy HBase'ing!
J-D
On Thu, Jul 24, 2008 at 7:00 AM, Ruben de Laat <ru...@symbaloo.com> wrote:
> Please see my other reply on you original question.
> You sentence 'The hbase folder is existed in hdfs://192.168.1.5:50000.',
> should not be the case, when you delete it things will work fine, your
> configuration file can stay the same.
>
>
> thopham.asnet wrote:
>
>> Hi Ruben,
>>
>> Sure. I had to start HDFS and then create a 'hbase' folder as the root
>> directory of HBase, like you see in the configuration file.
>>
>> Thanks for your quick response.
>>
>> Ruben de Laat wrote:
>>
>>> Hi Tho,
>>>
>>> As fat as I know, with version 0.2.0 there must be either no hbase dir,
>>> of an already initialized one.
>>>
>>> Good luck
>>>
>>> thopham.asnet wrote:
>>>
>>>> Hi All,
>>>>
>>>> I cannot start HBase master when setting root directory of HBase is a
>>>> folder in HDFS.
>>>>
>>>> Hadoop version: 0.17.1
>>>> HBase version: 0.2.0
>>>>
>>>> My hbase-site.xml configuration file
>>>>
>>>> <configuration>
>>>> <property>
>>>> <name>hbase.master</name>
>>>> <value>192.168.1.5:60000</value>
>>>> </property>
>>>> <property>
>>>> <name>hbase.rootdir</name>
>>>> <value>hdfs://192.168.1.5:50000/hbase</value>
>>>> </property>
>>>> </configuration>
>>>>
>>>> HDFS is already formated. The HDFS server started OK. The hbase folder
>>>> is existed in hdfs://192.168.1.5:50000.
>>>> The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
>>>> folder.
>>>>
>>>> But I cannot start HBase master. Please see the log file.
>>>>
>>>> ----------------------- LOG file
>>>> -----------------------------------------------------------
>>>> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
>>>> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
>>>> 2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
>>>> Not starting HMaster because:
>>>> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
>>>> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
>>>> at
>>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>> Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>>> 2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
>>>> Can not start master
>>>> java.lang.reflect.InvocationTargetException
>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>> Method)
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>>> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>>> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException: File
>>>> system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate'
>>>> script.
>>>> at
>>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>>> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>>> ... 6 more
>>>> --------------------------------------------------------------------------------------------------
>>>>
>>>>
>>>> I don't know why system tells me have to migrate the file system. I know
>>>> that, hbase-0.2.0 is available with hadoop-0.17.1.
>>>>
>>>> Please help me.
>>>>
>>>> Best regards,
>>>> Tho Pham
>>>>
>>>>
>>>>
>>>>
>>>
>>
Re: Cannot start HBase master with HDFS
Posted by Ruben de Laat <ru...@symbaloo.com>.
Please see my other reply on you original question.
You sentence 'The hbase folder is existed in hdfs://192.168.1.5:50000.',
should not be the case, when you delete it things will work fine, your
configuration file can stay the same.
thopham.asnet wrote:
> Hi Ruben,
>
> Sure. I had to start HDFS and then create a 'hbase' folder as the root
> directory of HBase, like you see in the configuration file.
>
> Thanks for your quick response.
>
> Ruben de Laat wrote:
>> Hi Tho,
>>
>> As fat as I know, with version 0.2.0 there must be either no hbase
>> dir, of an already initialized one.
>>
>> Good luck
>>
>> thopham.asnet wrote:
>>> Hi All,
>>>
>>> I cannot start HBase master when setting root directory of HBase is
>>> a folder in HDFS.
>>>
>>> Hadoop version: 0.17.1
>>> HBase version: 0.2.0
>>>
>>> My hbase-site.xml configuration file
>>>
>>> <configuration>
>>> <property>
>>> <name>hbase.master</name>
>>> <value>192.168.1.5:60000</value>
>>> </property>
>>> <property>
>>> <name>hbase.rootdir</name>
>>> <value>hdfs://192.168.1.5:50000/hbase</value>
>>> </property>
>>> </configuration>
>>>
>>> HDFS is already formated. The HDFS server started OK. The hbase
>>> folder is existed in hdfs://192.168.1.5:50000.
>>> The hadoop-site.xml configuration file is already in
>>> $HBASE_HOME/conf folder.
>>>
>>> But I cannot start HBase master. Please see the log file.
>>>
>>> ----------------------- LOG file
>>> -----------------------------------------------------------
>>> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
>>> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
>>> 2008-07-24 16:23:36,909 FATAL
>>> org.apache.hadoop.hbase.master.HMaster: Not starting HMaster because:
>>> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
>>> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
>>> at
>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>> at
>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>> at
>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>> at
>>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>> 2008-07-24 16:23:36,911 ERROR
>>> org.apache.hadoop.hbase.master.HMaster: Can not start master
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>> at
>>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>>> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException:
>>> File system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase
>>> migrate' script.
>>> at
>>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>>> at
>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>>> at
>>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>>> ... 6 more
>>> --------------------------------------------------------------------------------------------------
>>>
>>>
>>> I don't know why system tells me have to migrate the file system. I
>>> know that, hbase-0.2.0 is available with hadoop-0.17.1.
>>>
>>> Please help me.
>>>
>>> Best regards,
>>> Tho Pham
>>>
>>>
>>>
>>
>
Re: Cannot start HBase master with HDFS
Posted by "thopham.asnet" <th...@gmail.com>.
Hi Ruben,
Sure. I had to start HDFS and then create a 'hbase' folder as the root
directory of HBase, like you see in the configuration file.
Thanks for your quick response.
Ruben de Laat wrote:
> Hi Tho,
>
> As fat as I know, with version 0.2.0 there must be either no hbase
> dir, of an already initialized one.
>
> Good luck
>
> thopham.asnet wrote:
>> Hi All,
>>
>> I cannot start HBase master when setting root directory of HBase is a
>> folder in HDFS.
>>
>> Hadoop version: 0.17.1
>> HBase version: 0.2.0
>>
>> My hbase-site.xml configuration file
>>
>> <configuration>
>> <property>
>> <name>hbase.master</name>
>> <value>192.168.1.5:60000</value>
>> </property>
>> <property>
>> <name>hbase.rootdir</name>
>> <value>hdfs://192.168.1.5:50000/hbase</value>
>> </property>
>> </configuration>
>>
>> HDFS is already formated. The HDFS server started OK. The hbase
>> folder is existed in hdfs://192.168.1.5:50000.
>> The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
>> folder.
>>
>> But I cannot start HBase master. Please see the log file.
>>
>> ----------------------- LOG file
>> -----------------------------------------------------------
>> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
>> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
>> 2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
>> Not starting HMaster because:
>> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
>> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
>> at
>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at
>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>> 2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
>> Can not start master
>> java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at
>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException:
>> File system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase
>> migrate' script.
>> at
>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>> ... 6 more
>> --------------------------------------------------------------------------------------------------
>>
>>
>> I don't know why system tells me have to migrate the file system. I
>> know that, hbase-0.2.0 is available with hadoop-0.17.1.
>>
>> Please help me.
>>
>> Best regards,
>> Tho Pham
>>
>>
>>
>
Re: Cannot start HBase master with HDFS
Posted by Ruben de Laat <ru...@symbaloo.com>.
Sorry, should look at what I'm typing :)
The directory you define (hbase in this case) must not exist (hbase will
create it), or it must already be initialized. I had the same error
message with 0.2.0 yesterday, because in the 0.1.3 version, you had to
create it manually.
Ruben de Laat wrote:
> Hi Tho,
>
> As fat as I know, with version 0.2.0 there must be either no hbase
> dir, of an already initialized one.
>
> Good luck
>
> thopham.asnet wrote:
>> Hi All,
>>
>> I cannot start HBase master when setting root directory of HBase is a
>> folder in HDFS.
>>
>> Hadoop version: 0.17.1
>> HBase version: 0.2.0
>>
>> My hbase-site.xml configuration file
>>
>> <configuration>
>> <property>
>> <name>hbase.master</name>
>> <value>192.168.1.5:60000</value>
>> </property>
>> <property>
>> <name>hbase.rootdir</name>
>> <value>hdfs://192.168.1.5:50000/hbase</value>
>> </property>
>> </configuration>
>>
>> HDFS is already formated. The HDFS server started OK. The hbase
>> folder is existed in hdfs://192.168.1.5:50000.
>> The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
>> folder.
>>
>> But I cannot start HBase master. Please see the log file.
>>
>> ----------------------- LOG file
>> -----------------------------------------------------------
>> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
>> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
>> 2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
>> Not starting HMaster because:
>> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
>> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
>> at
>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at
>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>> 2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
>> Can not start master
>> java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at
>> org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
>> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
>> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException:
>> File system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase
>> migrate' script.
>> at
>> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
>> at
>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
>> ... 6 more
>> --------------------------------------------------------------------------------------------------
>>
>>
>> I don't know why system tells me have to migrate the file system. I
>> know that, hbase-0.2.0 is available with hadoop-0.17.1.
>>
>> Please help me.
>>
>> Best regards,
>> Tho Pham
>>
>>
>>
Re: Cannot start HBase master with HDFS
Posted by Ruben de Laat <ru...@symbaloo.com>.
Hi Tho,
As fat as I know, with version 0.2.0 there must be either no hbase dir,
of an already initialized one.
Good luck
thopham.asnet wrote:
> Hi All,
>
> I cannot start HBase master when setting root directory of HBase is a
> folder in HDFS.
>
> Hadoop version: 0.17.1
> HBase version: 0.2.0
>
> My hbase-site.xml configuration file
>
> <configuration>
> <property>
> <name>hbase.master</name>
> <value>192.168.1.5:60000</value>
> </property>
> <property>
> <name>hbase.rootdir</name>
> <value>hdfs://192.168.1.5:50000/hbase</value>
> </property>
> </configuration>
>
> HDFS is already formated. The HDFS server started OK. The hbase folder
> is existed in hdfs://192.168.1.5:50000.
> The hadoop-site.xml configuration file is already in $HBASE_HOME/conf
> folder.
>
> But I cannot start HBase master. Please see the log file.
>
> ----------------------- LOG file
> -----------------------------------------------------------
> 2008-07-24 16:23:36,862 INFO org.apache.hadoop.hbase.master.HMaster:
> Root region dir: hdfs://192.168.1.5:50000/hbase/-ROOT-/70236052
> 2008-07-24 16:23:36,909 FATAL org.apache.hadoop.hbase.master.HMaster:
> Not starting HMaster because:
> org.apache.hadoop.hbase.util.FileSystemVersionException: File system
> needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase migrate' script.
> at
> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
> 2008-07-24 16:23:36,911 ERROR org.apache.hadoop.hbase.master.HMaster:
> Can not start master
> java.lang.reflect.InvocationTargetException
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:798)
> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:832)
> Caused by: org.apache.hadoop.hbase.util.FileSystemVersionException:
> File system needs to be upgraded. Run the '${HBASE_HOME}/bin/hbase
> migrate' script.
> at
> org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:131)
> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:148)
> ... 6 more
> --------------------------------------------------------------------------------------------------
>
>
> I don't know why system tells me have to migrate the file system. I
> know that, hbase-0.2.0 is available with hadoop-0.17.1.
>
> Please help me.
>
> Best regards,
> Tho Pham
>
>
>