2013-07-22 68 views
0

我想在本地機器上安裝hadoop,habse,zookeeper。但我在動物園管理員連接中遇到問題。在Debian中單個節點hadoop,hbase,zookerper中的安裝問題

以下是HBase的主日誌:

2013-07-21 22:01:24,603 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp 
2013-07-21 22:01:24,603 INFO org.apache.zookeeper.ZooKeeper: Client environment:java.compiler=<NA> 
2013-07-21 22:01:24,603 INFO org.apache.zookeeper.ZooKeeper: Client environment:os.name=Linux 
2013-07-21 22:01:24,603 INFO org.apache.zookeeper.ZooKeeper: Client environment:os.arch=amd64 
2013-07-21 22:01:24,603 INFO org.apache.zookeeper.ZooKeeper: Client environment:os.version=3.2.0-4-amd64 
2013-07-21 22:01:24,603 INFO org.apache.zookeeper.ZooKeeper: Client environment:user.name=gaurav 
2013-07-21 22:01:24,604 INFO org.apache.zookeeper.ZooKeeper: Client environment:user.home=/home/gaurav 
2013-07-21 22:01:24,604 INFO org.apache.zookeeper.ZooKeeper: Client environment:user.dir=/home/hbase/hbase-0.94.6.1/bin 
2013-07-21 22:01:24,605 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=master:60000 
2013-07-21 22:01:24,636 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) 
2013-07-21 22:01:24,637 INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: The identifier of this process is [email protected] 
2013-07-21 22:01:24,643 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect 
java.net.ConnectException: Connection refused 
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:708) 
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) 
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) 

能有人幫我這個?

我從這個鏈接配置hadoop http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/

HBase的配置的HBase-site.xml中

<?xml version="1.0"?> 
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 
<!-- 
/** 
* Copyright 2010 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 RegionServers</description> 
</property> 
<property> 
<name>hbase.zookeeper.quorum</name> 
<value>localhost</value> 
<description>Comma separated list of servers in the ZooKeeper Quorum. 
For example, 
"host1.mydomain.com,host2.mydomain.com,host3.mydomain.com". 
By default this is set to localhost for local and pseudo-distributed modes of operation. For a fully-distributed setup, this should be set to a full list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in hbase-env.shthis is the list of servers which we will start/stop ZooKeeper on. 
</description> 
</property> 
<property> 
<name>hbase.cluster.distributed</name> 
<value>true</value> 
</property> 
<property> 
<name>hbase.zookeeper.quorum</name> 
<value>localhost</value> 
</property> 
<property> 
<name>dfs.replication</name> 
<value>1</value> 
</property> 
<property> 
<name>hbase.master.port</name> 
<value>60000</value> 
</property> 
<property> 
<name>hbase.zookeeper.property.clientPort</name> 
<value>2222</value> 
</property> 
<property> 
<name>hbase.zookeeper.property.dataDir</name> 
<value>/home/hbase/zookeeper</value> 
</property> 
<property> 
<name>zookeeper.znode.parent</name> 
<value>/home/hbase/hbase-0.94.6.1</value> 
</property> 
<property> 
<name>hbase.zookeeper.property.maxClientCnxns</name> 
<value>1000</value> 
</property> 
</configuration> 

hbase-env.sh

出口JAVA_HOME =的/ usr /本地/ jdk1.7.0_25 出口HBASE_MANAGES_ZK =真 僅在此被設定這個文件

,我只有兩個文件夾Hadoop和HBase的,一個Hadoop的包裝和那裏HBase的封裝

hbase master log http://pastebin.com/TUvx4BgX

回答

0

您的hbase master無法正常啓動,這就是爲什麼它無法連接到60000端口。請在您的hadoop和hbase conf中檢查以下內容。

  1. 在HBase的/ CONF/HBase的-site.xml.check的hbase.master property.it的值應爲60000。
  2. 檢查,如果在HBase的CONF端口正確地與hadoop的配置港口。
  3. 檢查zookeeper conf是否具有相同的hbase master端口。

也做netstat並檢查hadoop和hbase端口是否可用。

如果你可以附加conf文件,我可以給你更多的細節

+0

謝謝你的回覆。 –

+0

我不知道。如果我需要單獨安裝zookeeper。我只是在hbase中配置hbase-site.xml,在core-site.xml中配置hadoop,啓動zookeeper還是需要單獨安裝zookeeper –

+0

請檢查我已附加conf文件和登錄hbase的新更新問題。 –