hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Smyczek <adam.smyc...@gmail.com>
Subject Re: Getting started issue with HBase and ZooKeeper
Date Fri, 16 Oct 2009 22:40:17 GMT
Following is the shell output and master log file.
ZooKeeper and Regionserver logs are empty.

# Shell output

 > ./bin/start-hbase.sh
localhost: starting zookeeper, logging to /Users/asmyczek/temp/hbase/ 
hbase-0.20.1/bin/../logs/hbase-asmyczek-zookeeper-asmyczek-3.local.out
starting master, logging to /Users/asmyczek/temp/hbase/hbase-0.20.1/ 
bin/../logs/hbase-asmyczek-master-asmyczek-3.local.out
localhost: starting regionserver, logging to /Users/asmyczek/temp/ 
hbase/hbase-0.20.1/bin/../logs/hbase-asmyczek-regionserver- 
asmyczek-3.local.out

 > ./bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.20.1, r822817, Wed Oct  7 11:10:02 PDT 2009

hbase(main):001:0> list
09/10/16 15:14:02 WARN zookeeper.ClientCnxn: Exception closing session  
0x1245f6866060002 to sun.nio.ch.SelectionKeyImpl@12efcfe
java.io.IOException: TIMED OUT
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:906)
09/10/16 15:14:02 INFO client.HConnectionManager$TableServers:  
getMaster attempt 0 of 5 failed; retrying after sleep of 2000
java.io.IOException: org.apache.zookeeper.KeeperException 
$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/ 
master
	at  
org 
.apache 
.hadoop 
.hbase 
.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java: 
331)
	at  
org 
.apache 
.hadoop 
.hbase 
.zookeeper 
.ZooKeeperWrapper.readMasterAddressOrThrow(ZooKeeperWrapper.java:240)
	at org.apache.hadoop.hbase.client.HConnectionManager 
$TableServers.getMaster(HConnectionManager.java:318)
	at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
	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:513)
	at  
org 
.jruby.javasupport.JavaConstructor.new_instance(JavaConstructor.java: 
226)
	at  
org 
.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java: 
100)
	at  
org 
.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java: 
180)
	at org.jruby.RubyClass.finvoke(RubyClass.java:372)
	at  
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java: 
376)
	at org.jruby.java.proxies.ConcreteJavaProxy 
$2.call(ConcreteJavaProxy.java:48)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:283)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
121)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 
126)
	at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:554)
	at  
org 
.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java: 
152)
	at org.jruby.java.proxies.ConcreteJavaProxy 
$ConcreteNewMethod.call(ConcreteJavaProxy.java:170)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 
112)
	at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
	at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:91)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:220)
	at  
org 
.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java: 
171)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:303)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
161)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 
166)
	at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:560)
	at  
org 
.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java: 
169)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:293)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 
152)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirb.method__5$RUBY$admin(hirb.rb:314)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirbInvokermethod__5$RUBY$adminFixed0.call(hirb#admin)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirbInvokermethod__5$RUBY$adminFixed0.call(hirb#admin)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:253)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:72)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirb.method__10$RUBY$list(hirb.rb:338)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirbInvokermethod__10$RUBY$listFixed0.call(hirb#list)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirbInvokermethod__10$RUBY$listFixed0.call(hirb#list)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:253)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:72)
	at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.RootNode.interpret(RootNode.java:129)
	at  
org.jruby.evaluator.ASTInterpreter.evalWithBinding(ASTInterpreter.java: 
98)
	at org.jruby.RubyKernel.eval(RubyKernel.java:885)
	at org.jruby.RubyKernel$s_method_0_3$RUBYFRAMEDINVOKER$eval.call(org/ 
jruby/RubyKernel$s_method_0_3$RUBYFRAMEDINVOKER$eval.gen)
	at  
org 
.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java: 
136)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:243)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
	at org.jruby.ast.FCallManyArgsNode.interpret(FCallManyArgsNode.java:60)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:101)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:113)
	at  
org 
.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java: 
117)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:243)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
	at org.jruby.ast.CallManyArgsNode.interpret(CallManyArgsNode.java:59)
	at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:201)
	at  
org 
.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java: 
162)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:293)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java: 
152)
	at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:225)
	at  
org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 
147)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at  
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java: 
192)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:143)
	at org.jruby.runtime.Block.yield(Block.java:100)
	at org.jruby.ast.YieldNode.interpret(YieldNode.java:115)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
	at  
org 
.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java: 
153)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:283)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
121)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java: 
136)
	at  
org.jruby.ast.FCallOneArgBlockNode.interpret(FCallOneArgBlockNode.java: 
34)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at  
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java: 
192)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:180)
	at org.jruby.runtime.Block.yield(Block.java:105)
	at org.jruby.ast.YieldNode.interpret(YieldNode.java:113)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.IfNode.interpret(IfNode.java:112)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:225)
	at  
org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java: 
147)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at  
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java: 
192)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:143)
	at org.jruby.runtime.Block.yield(Block.java:100)
	at org.jruby.RubyKernel.loop(RubyKernel.java:1084)
	at org.jruby.RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop.call(org/ 
jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop.gen)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:263)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
81)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java: 
96)
	at  
org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at  
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java: 
192)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:143)
	at org.jruby.runtime.Block.yield(Block.java:100)
	at org.jruby.RubyKernel.rbCatch(RubyKernel.java:934)
	at org.jruby.RubyKernel$s_method_1_0$RUBYFRAMEDINVOKER 
$rbCatch.call(org/jruby/RubyKernel$s_method_1_0$RUBYFRAMEDINVOKER 
$rbCatch.gen)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:283)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
121)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java: 
136)
	at  
org.jruby.ast.FCallOneArgBlockNode.interpret(FCallOneArgBlockNode.java: 
34)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:144)
	at  
org 
.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java: 
135)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:263)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
81)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:86)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java: 
64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at  
org 
.jruby 
.internal 
.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:125)
	at  
org 
.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java: 
126)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:253)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:72)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirb.block_3$RUBY$__block__(hirb.rb:492)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirbBlockCallback$block_3$RUBY 
$__block__xx1.call(Unknown Source)
	at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:102)
	at org.jruby.runtime.Block.yield(Block.java:100)
	at org.jruby.RubyKernel.rbCatch(RubyKernel.java:934)
	at org.jruby.RubyKernel$s_method_1_0$RUBYFRAMEDINVOKER 
$rbCatch.call(org/jruby/RubyKernel$s_method_1_0$RUBYFRAMEDINVOKER 
$rbCatch.gen)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:283)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java: 
121)
	at  
org 
.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java: 
136)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirb.method__37$RUBY$start(hirb.rb:491)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirbInvokermethod__37$RUBY$startOpt.call(hirb#start)
	at  
org 
.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java: 
226)
	at  
org 
.jruby 
.internal.runtime.methods.CompiledMethod.call(CompiledMethod.java:211)
	at org.jruby.internal.runtime.methods.CompiledMethod 
$LazyCompiledMethod.call(CompiledMethod.java:71)
	at  
org 
.jruby 
.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:253)
	at  
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:72)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirb.__file__(hirb.rb:497)
	at Users.asmyczek.temp.hbase.hbase_minus_0_dot_20_dot_1.bin. 
$_dot_dot_.bin.hirb.load(hirb.rb)
	at org.jruby.Ruby.runScript(Ruby.java:577)
	at org.jruby.Ruby.runNormally(Ruby.java:480)
	at org.jruby.Ruby.runFromMain(Ruby.java:354)
	at org.jruby.Main.run(Main.java:229)
	at org.jruby.Main.run(Main.java:110)
	at org.jruby.Main.main(Main.java:94)
Caused by: org.apache.zookeeper.KeeperException 
$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/ 
master
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:892)
	at  
org 
.apache 
.hadoop 
.hbase 
.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java: 
327)
	... 163 more
0 row(s) in 0.1120 seconds
hbase(main):002:0>

# Master log output

2009-10-16 15:13:17.141::INFO:  Logging to STDERR via  
org.mortbay.log.StdErrLog
2009-10-16 15:13:17.370::INFO:  jetty-6.1.14
2009-10-16 15:13:18.752::INFO:  Started  
SelectChannelConnector@0.0.0.0:60010
2009-10-16 15:13:19.100::INFO:  jetty-6.1.14
2009-10-16 15:13:19.359::INFO:  Started  
SelectChannelConnector@0.0.0.0:60030

HBASE_HOME is set and 'ssh localhost' works without a password prompt.

Thanks,
Adam



On Oct 16, 2009, at 10:35 AM, Jean-Daniel Cryans wrote:

> Adam,
>
> Do you see messages like "getMaster attempt 1 of 3" or something like
> that? If so, could you parse the whole stuff?
>
> Also, look in the zookeeper log in the logs dir and see if it prints
> something at the same time it gives you the exception. If so, please
> add it to your reply.
>
> Thx,
>
> J-D
>
> On Thu, Oct 15, 2009 at 7:42 PM, Adam Smyczek  
> <adam.smyczek@gmail.com> wrote:
>> Hi,
>>
>> I'm trying to setup HBase in standalone mode for the first time.
>> Following the getting started guide everything seems to be fine
>> until I issue the first command on the HBase shell, for example
>> the 'list' command. It throws the exception:
>>
>> java.io.IOException:
>> org.apache.zookeeper.KeeperException$ConnectionLossException:
>> KeeperErrorCode = ConnectionLoss for /hbase/master
>>        at
>> org 
>> .apache 
>> .hadoop 
>> .hbase 
>> .zookeeper 
>> .ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:331)
>>        at
>> org 
>> .apache 
>> .hadoop 
>> .hbase 
>> .zookeeper 
>> .ZooKeeperWrapper.readMasterAddressOrThrow(ZooKeeperWrapper.java:240)
>>        at
>> org.apache.hadoop.hbase.client.HConnectionManager 
>> $TableServers.getMaster(HConnectionManager.java:318)
>>        at
>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
>>        at  
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> ...
>>
>> But it still prints the correct output. When I call 'list' or any  
>> other
>> command again,
>> it works fine. Any idea how to fix this?
>>
>> Based on some posts found by googling, I try to change 'localhost'
>> to the host IP or host name, but without success.
>> I'm running OS X 10.5.6 and HBase 0.20.1.
>>
>> Adam
>>
>>
>>


Mime
View raw message