hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Kellerman <...@powerset.com>
Subject RE: HBase with HDFS - Basic setup problem
Date Wed, 06 Aug 2008 16:38:36 GMT
In order to upgrade, the hbase instance must be offline. The upgrade utility verifies this
by trying to connect to the master, so in this case, the messages are expected.

---
Jim Kellerman, Senior Engineer; Powerset


> -----Original Message-----
> From: chris.paterson@bt.com [mailto:chris.paterson@bt.com]
> Sent: Wednesday, August 06, 2008 7:38 AM
> To: hbase-user@hadoop.apache.org
> Subject: RE: HBase with HDFS - Basic setup problem
>
> Nope, I didn't have hadoop-site.xml in the directory. I've
> now copied it, and restarted Hadoop. However, trying to
> restart HBase gives the following error:
>
> starting master, logging to
> /home/guest/hbase_0.2.0/bin/../logs/hbase-guest-master-ubuntu.out
> WARNING! File system needs to be upgraded. Run the
> '${HBASE_HOME}/bin/hbase migrate' script.
>
>
> When I try to run "hbase migrate upgrade" I get:
>
> 08/07/24 20:48:39 INFO util.Migrate: Verifying that file
> system is available...
> 08/07/24 20:48:39 INFO util.Migrate: Verifying that HBase is
> not running...
> 08/07/24 20:48:39 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 1 time(s).
> 08/07/24 20:48:40 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 2 time(s).
> 08/07/24 20:48:41 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 3 time(s).
> 08/07/24 20:48:42 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 4 time(s).
>
> So it seems there's still a problem with that address...
>
> Regards
>
>
> -----Original Message-----
> From: Yair Even-Zohar [mailto:yaire@revenuescience.com]
> Sent: 06 August 2008 15:31
> To: hbase-user@hadoop.apache.org
> Subject: RE: HBase with HDFS - Basic setup problem
>
> Do you have the hbase conf file pointing to the hadoop?
>
> You could copy the haddop-site.xml to the hbase/conf and
> restart hbase or read the documentation on how to set the
> variables properly
>
> Thanks
> -Yair
>
> -----Original Message-----
> From: chris.paterson@bt.com [mailto:chris.paterson@bt.com]
> Sent: Wednesday, August 06, 2008 9:27 AM
> To: hbase-user@hadoop.apache.org
> Subject: RE: HBase with HDFS - Basic setup problem
>
> Hi Yair,
>
> Thanks for the help. I'm now running HBase 0.2.0 with the
> following hbase-site.xml
>
>   <property>
>     <name>hbase.rootdir</name>
>     <value>hdfs://127.0.0.1:9000/hbase</value>
>     <description>The directory shared by region servers.
>     Should be fully-qualified to include the filesystem to use.
>     E.g: hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR
>     </description>
>   </property>
>     <property>
>     <name>hbase.master</name>
>     <value>127.0.0.1:59000</value>
>     <description>The host and port that the HBase master runs at.
>     A value of 'local' runs the master and a regionserver in
>     a single process.
>     </description>
>   </property>
>
> I entered 127.0.0.1:59000 as the hbase.master, as I presume
> that's specifies where I want this instance to run, rather
> than where an existing instance is running?
>
> When I enter the HBase shell and try to run the "list"
> command I now get the following errors:
>
> 08/07/24 20:36:11 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 1 time(s).
> 08/07/24 20:36:12 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 2 time(s).
> 08/07/24 20:36:13 INFO ipc.Client: Retrying connect to server:
> /127.0.0.1:59000. Already tried 3 time(s).
> 08/07/24 20:36:14 INFO
> client.HConnectionManager$TableServers: Attempt 0 of 3 failed
> with <java.net.ConnectException: Connection refused>.
> Retrying after sleep of 10000
>
> Both HBase and Hadoop are running (I can see the processes
> running), so it seems to be a config error.
>
> Regards,
> Chris Paterson
>
>
> -----Original Message-----
> From: Yair Even-Zohar [mailto:yaire@revenuescience.com]
> Sent: 06 August 2008 14:58
> To: hbase-user@hadoop.apache.org
> Subject: RE: HBase with HDFS - Basic setup problem
>
> I believe that hbase 0.1.3 is not supposed to work with hadoop 0.17.X.
>
> hbase 0.1.3  -> use hadoop 0.16.4
> hbase 0.2.0  -> use hadoop 0.17.x
>
>
> Additionally, your hbase.master is local. Can you point it to
> the ip:port
>
> Thanks
> -Yair
> -----Original Message-----
> From: Chris Paterson [mailto:cjrpaterson@googlemail.com]
> Sent: Wednesday, August 06, 2008 8:32 AM
> To: hbase-user@hadoop.apache.org
> Subject: HBase with HDFS - Basic setup problem
>
> Afternoon all,
>
> I'm attempting to setup HBase 0.1.3 to run on top of the
> Hadoop 0.17.1 DFS, however I'm having trouble. HBase is
> running at the moment (I can enter the shell, and create/show
> tables), however stopping the HDFS has no effect, therefore
> suggesting that HBase is running using the local filesystem
> rather than the HDFS. I'd really appreciate any suggestions!
>
> I'm not sure if attachments are allowed, so I'll add the
> files in-line...
>
> Below is my hbase-site.xml file:
> <configuration>
>   <property>
>     <name>hbase.rootdir</name>
>     <value>hdfs://127.0.0.1:9000/hbase</value>
>     <description>The directory shared by region servers.
>     Should be fully-qualified to include the filesystem to use.
>     E.g: hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR
>     </description>
>   </property>
>     <property>
>     <name>hbase.master</name>
>     <value>local</value>
>     <description>The host and port that the HBase master runs at.
>     A value of 'local' runs the master and a regionserver in
>     a single process.
>     </description>
>   </property>
> </configuration>
>
>
> And my hadoop-site.xml:
>  <property>
>   <name>fs.default.name</name>
>   <value>hdfs://127.0.0.1:9000</value>
>  </property>
>
>     <property>
>         <name>mapred.job.tracker</name>
>         <value>hdfs://127.0.0.1:9001</value>
>     </property>
>
>  <property>
>   <name>dfs.name.dir</name>
>   <value>/usr/hadoop/hdfs/name</value>
>  </property>
>
>  <property>
>   <name>dfs.data.dir</name>
>   <value>/usr/hadoop/hdfs/data</value>
>  </property>
>
>     <property>
>         <name>dfs.replication</name>
>   <value>3</value>
>     </property>
>
>  <property>
>   <name>mapred.child.java.opts</name>
>   <value>-Xmx2000m</value>
>  </property>
>
>  <property>
>   <name>mapred.map.tasks</name>
>   <description>10x number of slaves</description>
>         <value>120</value>
>     </property>
>
> Regards,
> Chris Paterson
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.138 / Virus Database: 270.5.12/1595 - Release
> Date: 8/6/2008 8:23 AM
>

Mime
View raw message