分享

Hbase伪分布,建表报错

sunny6142496 发表于 2013-10-16 13:40:45 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 5938
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
  
         dfs.replication
         1
     
我的hadoop配的是伪分布式,运行正常
              
               
               

已有(5)人评论

跳转到指定楼层
sunny6142496 发表于 2013-10-16 13:41:18

            最后是把/etc/hosts里127.0.1.1这行删了就好了
        
回复

使用道具 举报

zhangkai08111 发表于 2013-10-16 13:42:18

             ConnectionLoss for /hbase,hadoop和hbase版本分别是什么。
        
回复

使用道具 举报

sunny6142496 发表于 2013-10-16 13:43:05

            引用 2 楼 zhangkai08111 的回复:ConnectionLoss for /hbase,hadoop和hbase版本分别是什么。
hadoop1.0.3,hbase0.94.1
        
回复

使用道具 举报

VLTIC 发表于 2013-10-16 13:43:58

            
引用 1 楼 sunny6142496 的回复:最后是把/etc/hosts里127.0.1.1这行删了就好了
为什么把这行删了就好了,跟他有什么关联?
        
回复

使用道具 举报

scut_FLYAWAY 发表于 2013-10-16 13:44:33

            那一行需要改成127.0.0.1 详细说明看HBASE英文官方文档!
        
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条