码迷,mamicode.com
首页 > 其他好文 > 详细

Hbase配置中出现的问题总结

时间:2014-06-09 23:38:14      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:hbase   error   


在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]

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

解决方案:把主服务器和从服务器上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地址

Hbase配置中出现的问题总结,布布扣,bubuko.com

Hbase配置中出现的问题总结

标签:hbase   error   

原文地址:http://blog.csdn.net/robinsonmhj/article/details/28710527

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!