hbase(main):003:0> create 'test', 'cf'
12/08/18 15:50:02 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries
12/08/18 15:50:02 WARN zookeeper.ZKUtil: hconnection-0x139386cb37b0003 Unable to set watcher on znode (/hbase)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1021)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:150)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:263)
at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.checkIfBaseNodeAvailable(ZooKeeperNodeTracker.java:214)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.checkIfBaseNodeAvailable(HConnectionManager.java:711)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:634)
at org.apache.hadoop.hbase.client.HBaseAdmin.getMaster(HBaseAdmin.java:212)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:491)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:395)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:331)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:525)
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:380)
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:59)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
》》》》》》》省去若干行《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
at home.sunny.hbase_minus_0_dot_94_dot_1.bin.$_dot_dot_.bin.hirb.block_2$RUBY$start(/home/sunny/hbase-0.94.1/bin/../bin/hirb.rb:183)
at home$sunny$hbase_minus_0_dot_94_dot_1$bin$$_dot_dot_$bin$hirb$block_2$RUBY$start.call(home$sunny$hbase_minus_0_dot_94_dot_1$bin$$_dot_dot_$bin$hirb$block_2$RUBY$start:65535)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:112)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:95)
at org.jruby.runtime.Block.yield(Block.java:130)
at org.jruby.RubyContinuation.enter(RubyContinuation.java:106)
at org.jruby.RubyKernel.rbCatch(RubyKernel.java:1192)
at org.jruby.RubyKernel$s$1$0$rbCatch.call(RubyKernel$s$1$0$rbCatch.gen:65535)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:187)
at home.sunny.hbase_minus_0_dot_94_dot_1.bin.$_dot_dot_.bin.hirb.method__5$RUBY$start(/home/sunny/hbase-0.94.1/bin/../bin/hirb.rb:182)
at home$sunny$hbase_minus_0_dot_94_dot_1$bin$$_dot_dot_$bin$hirb$method__5$RUBY$start.call(home$sunny$hbase_minus_0_dot_94_dot_1$bin$$_dot_dot_$bin$hirb$method__5$RUBY$start:65535)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:203)
at org.jruby.internal.runtime.methods.CompiledMethod.call(CompiledMethod.java:255)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
at home.sunny.hbase_minus_0_dot_94_dot_1.bin.$_dot_dot_.bin.hirb.__file__(/home/sunny/hbase-0.94.1/bin/../bin/hirb.rb:188)
at home.sunny.hbase_minus_0_dot_94_dot_1.bin.$_dot_dot_.bin.hirb.load(/home/sunny/hbase-0.94.1/bin/../bin/hirb.rb)
at org.jruby.Ruby.runScript(Ruby.java:693)
at org.jruby.Ruby.runScript(Ruby.java:686)
at org.jruby.Ruby.runNormally(Ruby.java:593)
at org.jruby.Ruby.runFromMain(Ruby.java:442)
at org.jruby.Main.doRunFromMain(Main.java:321)
at org.jruby.Main.internalRun(Main.java:241)
at org.jruby.Main.run(Main.java:207)
at org.jruby.Main.run(Main.java:191)
at org.jruby.Main.main(Main.java:171)
ERROR: org.apache.hadoop.hbase.MasterNotRunningException: null
我的hbase配置文件hbase-site.xml如下
hbase.rootdir
hdfs://localhost:9000/user/sunny/hbase