zoukankan      html  css  js  c++  java
  • Hbase配置中出现的问题总结


    在create table的时候出现例如以下问题


    1. ERROR: java.io.IOException: Table Namespace Manager not ready yet, try again later


    解决方式:这个问题是从单机配置到多机配置的时候出的问题,改动conf/hbase-env.sh 凝视掉export HBASE_MANAGES_ZK=true 



    2. java.net.SocketTimeoutException: Call to datanode1/172.16.0.122:60020 failed because java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/172.16.0.126:55277 remote=datanode1/172.16.0.122:60020]

    问题: 主server和从server上hbase-site.xml中,zookeeper.session.timeout配置的时间不一致

    解决方式:把主server和从server上hbase-site.xml中的zookeeper.session.timeout配置一致,统一成120000


    3. RegionServer not running

    察看日志:2014-06-05 22:02:20,112 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:21,113 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:22,114 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:23,115 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:24,118 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:25,119 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:26,121 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:27,122 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:28,123 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:29,124 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:30,126 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:31,127 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:32,129 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:33,130 INFO  [master:localhost:60000] master.ServerManager: Waiting on regionserver(s) to go down localhost,60020,1401974130087
    2014-06-05 22:02:33,667 INFO  [master:localhost:60000.oldLogCleaner] cleaner.LogCleaner: master:localhost:60000.oldLogCleaner exiting
    2014-06-05 22:02:33,668 INFO  [master:localhost:60000.oldLogCleaner] master.ReplicationLogCleaner: Stopping replicationLogCleaner-0x466c2b7c4b0003, quorum=datanode1:2222,robinson-ubuntu:2222, baseZNode=/hbase
    2014-06-05 22:02:33,684 INFO  [master:localhost:60000.archivedHFileCleaner] cleaner.HFileCleaner: master:localhost:60000.archivedHFileCleaner exiting
    2014-06-05 22:02:33,691 INFO  [master:localhost:60000.oldLogCleaner] zookeeper.ZooKeeper: Session: 0x466c2b7c4b0003 closed

    问题:/etc/hosts 中把主机名配置成了127.0.0.1

    解决方式:把主机名配置成实际IP地址

  • 相关阅读:
    KVC该机制
    JS多语种方式
    面试经典(1)---翻转字的顺序在一个句子
    正确Linux新手很实用20命令
    代码添加背景音乐的日记
    什么是比特币(Bitcoin)?
    李开复:该算法的重要性
    javascript推断的浏览器类型
    libyuv编
    Linux下将UTF8编码批量转换成GB2312编码的方法
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/5139726.html
Copyright © 2011-2022 走看看