hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ski Gh3 <ski...@gmail.com>
Subject Re: unable to start hbase-0.20 rc2 due to zookeeper problem
Date Mon, 31 Aug 2009 18:45:36 GMT
*Sure, thanks in advance for your time!
hbase-site.xm*l:

<configuration>
    <property>
    <name>hbase.rootdir</name>
    <value>hdfs://localhost:9000/hbase</value>
    <description>The directory shared by region servers.
    </description>
  </property>
  <property>
    <name>hbase.master</name>
    <value>localhost:60000</value>
    <description>The host and port that the HBase master runs
at.</description>
  </property>
</configuration>

*The command I execute in cygwin and the message:*
: no address associated with name localhost
starting master, logging to
/cygdrive/c/migrate/hbase-0.20.0/bin/../logs/hbase-I821584-master-PALN00458560A.out
127.0.0.1:
starting regionserver, logging to
/cygdrive/c/migrate/hbase-0.20.0/bin/../logs/hbase-I821584-regionserver-PALN00458560A.out

*which seems to show that zookeeper is not up

Then the hbase-master.log output (first few lines):*
Mon Aug 31 11:42:39 PDT 2009 Starting master on PALN00458560A
ulimit -n 256
2009-08-31 11:42:40,809 INFO org.apache.hadoop.hbase.master.HMaster:
vmName=Java HotSpot(TM) Client VM, vmVendor=Sun Microsystems Inc.,
vmVersion=11.0-b16
2009-08-31 11:42:40,809 INFO org.apache.hadoop.hbase.master.HMaster:
vmInputArguments=[-Xmx1000m, -XX:+HeapDumpOnOutOfMemoryError,
-XX:+UseConcMarkSweepGC, -XX:+CMSIncrementalMode,
-Dhbase.log.dir=c:\migrate\HBASE-~1.0\logs,
-Dhbase.log.file=hbase-I821584-master-PALN00458560A.log,
-Dhbase.home.dir=c:\migrate\HBASE-~1.0\, -Dhbase.id.str=I821584,
-Dhbase.root.logger=INFO,DRFA,
-Djava.library.path=/cygdrive/c/migrate/HBASE-~1.0/lib/native/Windows_XP-x86-32]
2009-08-31 11:42:40,872 INFO org.apache.hadoop.hbase.master.HMaster: My
address is PALN00458560A.dhcp.pal.sap.corp:60000
2009-08-31 11:42:41,934 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics:
Initializing RPC Metrics with hostName=HMaster, port=60000
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:zookeeper.version=3.2.0--1, built on 05/15/2009 06:05 GMT
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:host.name=PALN00458560A.dhcp.pal.sap.corp
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.version=1.6.0_11
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.vendor=Sun Microsystems Inc.
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.home=c:\Java\jdk1.6.0_11\jre
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.class.path=c:\migrate\hbase-0.20.0\conf;c:\Java\jdk1.6.0_11\lib\tools.jar;c:\migrate\hbase-0.20.0\;c:\migrate\hbase-0.20.0\hbase-0.20.0-test.jar;c:\migrate\hbase-0.20.0\hbase-0.20.0.jar;c:\migrate\hbase-0.20.0\lib\AgileJSON-2009-03-30.jar;c:\migrate\hbase-0.20.0\lib\commons-cli-2.0-SNAPSHOT.jar;c:\migrate\hbase-0.20.0\lib\commons-el-from-jetty-5.1.4.jar;c:\migrate\hbase-0.20.0\lib\commons-httpclient-3.0.1.jar;c:\migrate\hbase-0.20.0\lib\commons-logging-1.0.4.jar;c:\migrate\hbase-0.20.0\lib\commons-logging-api-1.0.4.jar;c:\migrate\hbase-0.20.0\lib\commons-math-1.1.jar;c:\migrate\hbase-0.20.0\lib\hadoop-0.20.0-plus4681-core.jar;c:\migrate\hbase-0.20.0\lib\hadoop-0.20.0-test.jar;c:\migrate\hbase-0.20.0\lib\jasper-compiler-5.5.12.jar;c:\migrate\hbase-0.20.0\lib\jasper-runtime-5.5.12.jar;c:\migrate\hbase-0.20.0\lib\jetty-6.1.14.jar;c:\migrate\hbase-0.20.0\lib\jetty-util-6.1.14.jar;c:\migrate\hbase-0.20.0\lib\jruby-complete-1.2.0.jar;c:\migrate\hbase-0.20.0\lib\json.jar;c:\migrate\hbase-0.20.0\lib\junit-3.8.1.jar;c:\migrate\hbase-0.20.0\lib\libthrift-r771587.jar;c:\migrate\hbase-0.20.0\lib\log4j-1.2.15.jar;c:\migrate\hbase-0.20.0\lib\lucene-core-2.2.0.jar;c:\migrate\hbase-0.20.0\lib\servlet-api-2.5-6.1.14.jar;c:\migrate\hbase-0.20.0\lib\xmlenc-0.52.jar;c:\migrate\hbase-0.20.0\lib\zookeeper-r785019-hbase-1329.jar;c:\migrate\hbase-0.20.0\lib\jsp-2.1\jsp-2.1.jar;c:\migrate\hbase-0.20.0\lib\jsp-2.1\jsp-api-2.1.jar
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.library.path=/cygdrive/c/migrate/HBASE-~1.0/lib/native/Windows_XP-x86-32
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.io.tmpdir=c:\DOCUME~1\I821584\LOCALS~1\Temp\
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:java.compiler=<NA>
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:os.name=Windows XP
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:os.arch=x86
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:os.version=5.1
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:user.name=I821584
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:user.home=C:\Documents and Settings\I821584
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Client
environment:user.dir=c:\migrate
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ZooKeeper: Initiating
client connection, host=localhost:2181 sessionTimeout=60000
watcher=Thread[Thread-0,5,main]
2009-08-31 11:42:41,981 INFO org.apache.zookeeper.ClientCnxn:
zookeeper.disableAutoWatchReset is false
2009-08-31 11:42:42,012 INFO org.apache.zookeeper.ClientCnxn: Attempting
connection to server localhost/127.0.0.1:2181
2009-08-31 11:42:42,012 INFO org.apache.hadoop.hbase.master.RegionManager:
-ROOT- region unset (but not set to be reassigned)
2009-08-31 11:42:42,012 INFO org.apache.hadoop.hbase.master.RegionManager:
ROOT inserted into regionsInTransition
2009-08-31 11:42:43,012 WARN org.apache.zookeeper.ClientCnxn: Exception
closing session 0x0 to sun.nio.ch.SelectionKeyImpl@dcb03b
java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:885)
2009-08-31 11:42:43,012 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown input
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
    at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:951)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:43,012 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown output
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
    at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:956)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:44,169 INFO org.apache.zookeeper.ClientCnxn: Attempting
connection to server localhost/127.0.0.1:2181
2009-08-31 11:42:45,122 WARN org.apache.zookeeper.ClientCnxn: Exception
closing session 0x0 to sun.nio.ch.SelectionKeyImpl@1d53f5b
java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:885)
2009-08-31 11:42:45,122 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown input
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
    at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:951)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:45,122 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown output
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
    at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:956)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:45,215 WARN
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create /hbase
-- check quorum servers, currently=localhost:2181
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:522)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:342)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:365)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.writeMasterAddress(ZooKeeperWrapper.java:453)
    at
org.apache.hadoop.hbase.master.HMaster.writeAddressToZooKeeper(HMaster.java:269)
    at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:255)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:94)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:78)
    at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1196)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1241)
2009-08-31 11:42:46,294 INFO org.apache.zookeeper.ClientCnxn: Attempting
connection to server localhost/127.0.0.1:2181
2009-08-31 11:42:47,231 WARN org.apache.zookeeper.ClientCnxn: Exception
closing session 0x0 to sun.nio.ch.SelectionKeyImpl@26d607
java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:885)
2009-08-31 11:42:47,231 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown input
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
    at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:951)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:47,231 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown output
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
    at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:956)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:48,747 INFO org.apache.zookeeper.ClientCnxn: Attempting
connection to server localhost/127.0.0.1:2181
2009-08-31 11:42:49,747 WARN org.apache.zookeeper.ClientCnxn: Exception
closing session 0x0 to sun.nio.ch.SelectionKeyImpl@1ad98ef
java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:885)
2009-08-31 11:42:49,747 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown input
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
    at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:951)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:49,747 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown output
java.nio.channels.ClosedChannelException
    at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:649)
    at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:956)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:922)
2009-08-31 11:42:49,856 WARN
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create /hbase
-- check quorum servers, currently=localhost:2181
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:522)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:342)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:365)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.writeMasterAddress(ZooKeeperWrapper.java:453)
    at
org.apache.hadoop.hbase.master.HMaster.writeAddressToZooKeeper(HMaster.java:269)
    at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:255)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:94)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:78)
    at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1196)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1241)

On Mon, Aug 31, 2009 at 11:23 AM, Jean-Daniel Cryans <jdcryans@apache.org>wrote:

> IP adresses won't work for the ZK part. Can you paste in your
> hbase-site.xml and the full error stack trace?
>
> J-D
>
> On Mon, Aug 31, 2009 at 2:20 PM, Ski Gh3<skigh3@gmail.com> wrote:
> > my hbase-site has something like "localhost" for the hbase home set up
> etc.
> > I changed them all to 127.0.0.1 but still get the same error message,
> just
> > don't know what the message
> > "no address associated with name localhost" is complaining about
> exactly:(
> >
> > has anybody else used zookeeper with cygwin before?
> >
> >
> >
> > On Mon, Aug 31, 2009 at 11:16 AM, Jean-Daniel Cryans <
> jdcryans@apache.org>wrote:
> >
> >> That's all good, just wanted to make sure. But that config by default
> >> is set to localhost, so could it be that you didn't use the new
> >> hbase-default.xml file eg that you copied over the content of the conf
> >> folder? Another possibility is the fact that you are in cygwin, not
> >> sure how much it's supported for ZK.
> >>
> >> J-D
> >>
> >> On Mon, Aug 31, 2009 at 2:12 PM, Ski Gh3<skigh3@gmail.com> wrote:
> >> > I didn't config this...
> >> > it's a pseudo distributed setup, do I need to config this one?
> >> > My understanding was that it's only needed for distributed setup.
> >> >
> >> > On Mon, Aug 31, 2009 at 10:42 AM, Jean-Daniel Cryans <
> >> jdcryans@apache.org>wrote:
> >> >
> >> >> What's your hbase.zookeeper.quorum config value?
> >> >>
> >> >> J-D
> >> >>
> >> >> On Mon, Aug 31, 2009 at 1:32 PM, Ski Gh3<skigh3@gmail.com> wrote:
> >> >> > Hi all,
> >> >> > I was trying to set up an hbase-0.20 rc2 instance in a pseudo
dist
> >> mode,
> >> >> but
> >> >> > the zookeeper instance won't start.
> >> >> > after executing the start-hbase.sh script I got:
> >> >> >
> >> >> > : no address associated with name localhost
> >> >> >
> >> >> > the same happens if I just try to execute:
> >> >> > $HBASE_HOME/bin/hbase-daemons.sh start zookeeper
> >> >> >
> >> >> > is there something i need to set up here?
> >> >> >
> >> >> > I'm running on a windows+cygwin environment, my 0.18 instance
runs
> >> >> perfectly
> >> >> > fine.
> >> >> >
> >> >> > Thanks for your help in advance!
> >> >> >
> >> >> > Cheers
> >> >> >
> >> >>
> >> >
> >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message