hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "thopham.asnet" <thopham.as...@gmail.com>
Subject Re: Cannot start HBase master with HDFS
Date Thu, 24 Jul 2008 10:16:08 GMT
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
>>
>>
>>
>


Mime
View raw message