首页 > 代码库 > Hbase配置中出现的问题总结
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]
问题: 主服务器和从服务器上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地址