You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by antonis labadaridis <an...@gmail.com> on 2008/10/31 23:14:54 UTC
problem installing hbase
Hi.
I am trying to install Hbase on debian testing. I installed hadoop
0.18.1 sucessfully using these instructions:
http://wiki.apache.org/hadoop/Running_Hadoop_On_Ubuntu_Linux_(Single-Node_Cluster)
(the examples worked fine). Then I tried to install HBase, I followed
these instructions:
http://hadoop.apache.org/hbase/docs/r0.18.1/api/overview-summary.html#overview_description
(pseudo-distributed operation). HMaster starts running:
antonis@usefullpc:~/installs/hbase-0.18.1$ bin/start-hbase.sh
starting master, logging to
/home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-master-usefullpc.out
localhost: Debian GNU/Linux lenny/sid
localhost: starting regionserver, logging to
/home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-regionserver-usefullpc.out
antonis@usefullpc:~/installs/hbase-0.18.1$ jps
28425 HMaster
25720 SecondaryNameNode
25551 NameNode
25782 JobTracker
25628 DataNode
25872 TaskTracker
28559 Jps
Then I try to use the shell:
antonis@usefullpc:~/installs/hbase-0.18.1$ bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.18.1, r707159, Wed Oct 22 12:43:06 PDT 2008
hbase(main):001:0> create 't1', {NAME => 'f1', VERSIONS => 5}
08/11/01 00:09:41 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 0 time(s).
08/11/01 00:09:42 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 1 time(s).
08/11/01 00:09:43 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:60000. Already tried 2 time(s).
08/11/01 00:09:43 INFO client.HConnectionManager$TableServers: Attempt 0
of 5 failed with <java.io.IOException: Call failed on local exception>.
Retrying after sleep of 2000
^Cantonis@usefullpc:~/installs/hbase-0.18.1$ jps
25720 SecondaryNameNode
25551 NameNode
25782 JobTracker
25628 DataNode
28631 Jps
25872 TaskTracker
The same thing happens even if I quit the shell immidiately. The log
files are:
--master
Sat Nov 1 00:08:29 EET 2008 Starting master on usefullpc
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
ulimit -n 1024
2008-11-01 00:08:33,096 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s).
2008-11-01 00:08:34,097 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s).
2008-11-01 00:08:35,100 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s).
2008-11-01 00:08:36,104 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s).
2008-11-01 00:08:37,111 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 4 time(s).
2008-11-01 00:08:38,112 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 5 time(s).
2008-11-01 00:08:39,115 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 6 time(s).
2008-11-01 00:08:40,120 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 7 time(s).
2008-11-01 00:08:41,124 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 8 time(s).
2008-11-01 00:08:42,130 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: localhost/127.0.0.1:9000. Already tried 9 time(s).
2008-11-01 00:08:42,164 ERROR org.apache.hadoop.hbase.master.HMaster:
Can not start master
java.io.IOException: Call failed on local exception
at org.apache.hadoop.ipc.Client.call(Client.java:718)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
at org.apache.hadoop.dfs.$Proxy0.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:319)
at
org.apache.hadoop.dfs.DFSClient.createRPCNamenode(DFSClient.java:103)
at org.apache.hadoop.dfs.DFSClient.<init>(DFSClient.java:173)
at
org.apache.hadoop.dfs.DistributedFileSystem.initialize(DistributedFileSystem.java:67)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1339)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:56)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1351)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:213)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:118)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:177)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:147)
at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:95)
at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:77)
at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:780)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:818)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:100)
at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:300)
at
org.apache.hadoop.ipc.Client$Connection.access$1700(Client.java:177)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:789)
at org.apache.hadoop.ipc.Client.call(Client.java:704)
... 17 more
region:
Sat Nov 1 00:08:31 EET 2008 Starting regionserver on usefullpc
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
ulimit -n 1024
2008-11-01 00:08:32,492 WARN
org.apache.hadoop.hbase.regionserver.HRegionServer: Not starting a
distinct region server because hbase.master is set to 'local' mode
can anyone help me?
Regards,
Antonis
Re: problem installing hbase
Posted by antonis labadaridis <an...@gmail.com>.
my bad, I used wrong port for hdfs in hsite-base.xml. everything ok now. \
thank you
antonis
Michael Stack wrote:
> You can put and get to this hdfs with "./bin/hadoop fs ..."? HBase
> is having trouble getting to 'localhost'. Try using an IP or
> resovable hostname instead of 'localhost'.
>
> St.Ack
>
> antonis labadaridis wrote:
>> Michael Stack wrote:
>>> antonis labadaridis wrote:
>>>> Hi.
>>>>
>>>> I am trying to install Hbase on debian testing. I installed hadoop
>>>> 0.18.1 sucessfully using these instructions:
>>>> http://wiki.apache.org/hadoop/Running_Hadoop_On_Ubuntu_Linux_(Single-Node_Cluster)
>>>> (the examples worked fine). Then I tried to install HBase, I
>>>> followed these instructions:
>>>> http://hadoop.apache.org/hbase/docs/r0.18.1/api/overview-summary.html#overview_description
>>>> (pseudo-distributed operation). HMaster starts running:
>>>>
>>>> antonis@usefullpc:~/installs/hbase-0.18.1$ bin/start-hbase.sh
>>>> starting master, logging to
>>>> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-master-usefullpc.out
>>>>
>>>> localhost: Debian GNU/Linux lenny/sid
>>>> localhost: starting regionserver, logging to
>>>> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-regionserver-usefullpc.out
>>>>
>>>> antonis@usefullpc:~/installs/hbase-0.18.1$ jps
>>>> 28425 HMaster
>>>> 25720 SecondaryNameNode
>>>> 25551 NameNode
>>>> 25782 JobTracker
>>>> 25628 DataNode
>>>> 25872 TaskTracker
>>>> 28559 Jps
>>> What do you have in your hbase-site.xml?
>>> Thanks,
>>> St.Ack
>>>
>> hbase-site.xml:
>>
>> <?xml version="1.0"?>
>> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
>> <!--
>> /**
>> * Copyright 2007 The Apache Software Foundation
>> *
>> * Licensed to the Apache Software Foundation (ASF) under one
>> * or more contributor license agreements. See the NOTICE file
>> * distributed with this work for additional information
>> * regarding copyright ownership. The ASF licenses this file
>> * to you under the Apache License, Version 2.0 (the
>> * "License"); you may not use this file except in compliance
>> * with the License. You may obtain a copy of the License at
>> *
>> * http://www.apache.org/licenses/LICENSE-2.0
>> *
>> * Unless required by applicable law or agreed to in writing, software
>> * distributed under the License is distributed on an "AS IS" BASIS,
>> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> * See the License for the specific language governing permissions and
>> * limitations under the License.
>> */
>> -->
>>
>> <configuration>
>> <property>
>> <name>hbase.rootdir</name>
>> <value>hdfs://localhost:9000/hbase</value>
>> <description>The directory shared by region servers.
>> </description>
>> </property>
>> </configuration>
>>
>>
>> Regards,
>> Antonis
>
>
Re: problem installing hbase
Posted by Michael Stack <st...@duboce.net>.
You can put and get to this hdfs with "./bin/hadoop fs ..."? HBase is
having trouble getting to 'localhost'. Try using an IP or resovable
hostname instead of 'localhost'.
St.Ack
antonis labadaridis wrote:
> Michael Stack wrote:
>> antonis labadaridis wrote:
>>> Hi.
>>>
>>> I am trying to install Hbase on debian testing. I installed hadoop
>>> 0.18.1 sucessfully using these instructions:
>>> http://wiki.apache.org/hadoop/Running_Hadoop_On_Ubuntu_Linux_(Single-Node_Cluster)
>>> (the examples worked fine). Then I tried to install HBase, I
>>> followed these instructions:
>>> http://hadoop.apache.org/hbase/docs/r0.18.1/api/overview-summary.html#overview_description
>>> (pseudo-distributed operation). HMaster starts running:
>>>
>>> antonis@usefullpc:~/installs/hbase-0.18.1$ bin/start-hbase.sh
>>> starting master, logging to
>>> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-master-usefullpc.out
>>>
>>> localhost: Debian GNU/Linux lenny/sid
>>> localhost: starting regionserver, logging to
>>> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-regionserver-usefullpc.out
>>>
>>> antonis@usefullpc:~/installs/hbase-0.18.1$ jps
>>> 28425 HMaster
>>> 25720 SecondaryNameNode
>>> 25551 NameNode
>>> 25782 JobTracker
>>> 25628 DataNode
>>> 25872 TaskTracker
>>> 28559 Jps
>> What do you have in your hbase-site.xml?
>> Thanks,
>> St.Ack
>>
> hbase-site.xml:
>
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
> <!--
> /**
> * Copyright 2007 The Apache Software Foundation
> *
> * Licensed to the Apache Software Foundation (ASF) under one
> * or more contributor license agreements. See the NOTICE file
> * distributed with this work for additional information
> * regarding copyright ownership. The ASF licenses this file
> * to you under the Apache License, Version 2.0 (the
> * "License"); you may not use this file except in compliance
> * with the License. You may obtain a copy of the License at
> *
> * http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing, software
> * distributed under the License is distributed on an "AS IS" BASIS,
> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> * See the License for the specific language governing permissions and
> * limitations under the License.
> */
> -->
>
> <configuration>
> <property>
> <name>hbase.rootdir</name>
> <value>hdfs://localhost:9000/hbase</value>
> <description>The directory shared by region servers.
> </description>
> </property>
> </configuration>
>
>
> Regards,
> Antonis
Re: problem installing hbase
Posted by antonis labadaridis <an...@gmail.com>.
Michael Stack wrote:
> antonis labadaridis wrote:
>> Hi.
>>
>> I am trying to install Hbase on debian testing. I installed hadoop
>> 0.18.1 sucessfully using these instructions:
>> http://wiki.apache.org/hadoop/Running_Hadoop_On_Ubuntu_Linux_(Single-Node_Cluster)
>> (the examples worked fine). Then I tried to install HBase, I followed
>> these instructions:
>> http://hadoop.apache.org/hbase/docs/r0.18.1/api/overview-summary.html#overview_description
>> (pseudo-distributed operation). HMaster starts running:
>>
>> antonis@usefullpc:~/installs/hbase-0.18.1$ bin/start-hbase.sh
>> starting master, logging to
>> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-master-usefullpc.out
>>
>> localhost: Debian GNU/Linux lenny/sid
>> localhost: starting regionserver, logging to
>> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-regionserver-usefullpc.out
>>
>> antonis@usefullpc:~/installs/hbase-0.18.1$ jps
>> 28425 HMaster
>> 25720 SecondaryNameNode
>> 25551 NameNode
>> 25782 JobTracker
>> 25628 DataNode
>> 25872 TaskTracker
>> 28559 Jps
> What do you have in your hbase-site.xml?
> Thanks,
> St.Ack
>
hbase-site.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
* Copyright 2007 The Apache Software Foundation
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
<description>The directory shared by region servers.
</description>
</property>
</configuration>
Regards,
Antonis
Re: problem installing hbase
Posted by Michael Stack <st...@duboce.net>.
antonis labadaridis wrote:
> Hi.
>
> I am trying to install Hbase on debian testing. I installed hadoop
> 0.18.1 sucessfully using these instructions:
> http://wiki.apache.org/hadoop/Running_Hadoop_On_Ubuntu_Linux_(Single-Node_Cluster)
> (the examples worked fine). Then I tried to install HBase, I followed
> these instructions:
> http://hadoop.apache.org/hbase/docs/r0.18.1/api/overview-summary.html#overview_description
> (pseudo-distributed operation). HMaster starts running:
>
> antonis@usefullpc:~/installs/hbase-0.18.1$ bin/start-hbase.sh
> starting master, logging to
> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-master-usefullpc.out
>
> localhost: Debian GNU/Linux lenny/sid
> localhost: starting regionserver, logging to
> /home/antonis/installs/hbase-0.18.1/bin/../logs/hbase-antonis-regionserver-usefullpc.out
>
> antonis@usefullpc:~/installs/hbase-0.18.1$ jps
> 28425 HMaster
> 25720 SecondaryNameNode
> 25551 NameNode
> 25782 JobTracker
> 25628 DataNode
> 25872 TaskTracker
> 28559 Jps
What do you have in your hbase-site.xml?
Thanks,
St.Ack