分享

hadoop ha切换时候会报个异常,并且client会一直连原来active的那个namenode??

536528395 发表于 2015-2-2 18:29:40 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 42438
1:HA 切换的时候报这个是正常的么??
2015-02-02 18:12:56,091 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Stopping services started for standby state
2015-02-02 18:12:56,091 WARN org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer: Edit log tailer interrupted
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer$EditLogTailerThread.doWork(EditLogTailer.java:334)
        at org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer$EditLogTailerThread.access$200(EditLogTailer.java:279)
        at org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer$EditLogTailerThread$1.run(EditLogTailer.java:296)
        at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:456)
        at org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer$EditLogTailerThread.run(EditLogTailer.java:292)
2015-02-02 18:12:56,193 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Starting services required for active state
2015-02-02 18:12:56,197 INFO org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager: Starting recovery process for unclosed journal segments...
2015-02-02 18:12:56,283 INFO org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager: Successfully started new epoch 5
2015-02-02 18:12:56,283 INFO org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager: Beginning recovery of unclosed segment starting at txid 29642
2015-02-02 18:12:56,334 INFO org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager: Recovery prepare phase complete. Responses:
10.21.126.38:8485: segmentState { startTxId: 29642 endTxId: 29642 isInProgress: true } lastWriterEpoch: 4 lastCommittedTxId: 29641
2015-02-02 18:12:56,335 INFO org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager: Using longest log: 10.21.126.38:8485=segmentState {
  startTxId: 29642
  endTxId: 29642
  isInProgress: true
}
lastWriterEpoch: 4
lastCommittedTxId: 29641

2015-02-02 18:12:56,415 INFO org.apache.hadoop.hdfs.server.namenode.FileJournalManager: Recovering unfinalized segments in /mnt/disk0/test-hadoop/data/namenode/current


2:HA切换后client还是会去连接原来active的那个namenode么?
在原来的日志里看到有这个:
2015-02-02 18:25:36,228 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:test-hadoop (auth:SIMPLE) cause:org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby2015-02-02 18:25:36,228 INFO org.apache.hadoop.ipc.Server: IPC Server handler 81 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getListing from 10.21.126.34:53324 Call#18 Retry#0: error: org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby



已有(4)人评论

跳转到指定楼层
NEOGX 发表于 2015-2-3 17:58:58
回复

使用道具 举报

536528395 发表于 2015-2-3 18:24:30
NEOGX 发表于 2015-2-3 17:58
看下这个资料,打个补丁试试CacheAdmin commands fail when first listed NameNode is in Standby

我怎么在我的代码里都找不到它上面写的内容阿。。。。。
回复

使用道具 举报

b469528 发表于 2015-12-1 18:27:00
我也一直在报这个错误:Edit log tailer interrupted java.lang.InterruptedException: sleep interrupted

楼主解决了吗
回复

使用道具 举报

Lamont 发表于 2016-5-17 23:30:51
请问楼主后来是怎么解决的呢?
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条