分享

Hadoop2.2.0配置了HA 手动切换后为什么还会去连原来的namenode阿?

536528395 发表于 2015-2-10 12:46:31 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 21551
Hadoop2.2.0配置了HA 手动切换后为什么还会去连原来的namenode阿?
在原来的namenode日志中报这个:

2015-02-10 12:42:21,180 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:yrservice (auth:SIMPLE) cause:org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:21,180 INFO org.apache.hadoop.ipc.Server: IPC Server handler 12 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from 10.21.150.8:47111 Call#0 Retry#0: error: org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:22,922 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:yrservice (auth:SIMPLE) cause:org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:22,929 INFO org.apache.hadoop.ipc.Server: IPC Server handler 54 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from 10.21.150.8:47114 Call#0 Retry#0: error: org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:24,680 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:yrservice (auth:SIMPLE) cause:org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:24,680 INFO org.apache.hadoop.ipc.Server: IPC Server handler 70 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from 10.21.150.8:47117 Call#0 Retry#0: error: org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:26,476 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:yrservice (auth:SIMPLE) cause:org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:26,476 INFO org.apache.hadoop.ipc.Server: IPC Server handler 42 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from 10.21.150.8:47120 Call#0 Retry#0: error: org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:28,282 ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:yrservice (auth:SIMPLE) cause:org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby
2015-02-10 12:42:28,282 INFO org.apache.hadoop.ipc.Server: IPC Server handler 58 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.getFileInfo from 10.21.150.8:47123 Call#0 Retry#0: error: org.apache.hadoop.ipc.StandbyException: Operation category READ is not supported in state standby



并且在datanode的日志中报这个:

015-02-10 12:37:37,479 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Got a command from standby NN - ignoring command:22015-02-10 12:40:00,806 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Receiving BP-1933761035-10.21.129.41-1385204126689:blk_1074370472_637935 src: /10.21.126.37:39875 dest: /10.21.112.44:500102015-02-10 12:40:00,814 INFO org.apache.hadoop.hdfs.server.datanode.DataNode.clienttrace: src: /10.21.126.37:39875, dest: /10.21.112.44:50010, bytes: 175, op: HDFS_WRITE, cliID: DFSClient_NONMAPREDUCE_676448049_49, offset: 0, srvID: DS-1793536039-10.21.112.44-50010-1385204142584, blockid: BP-1933761035-10.21.129.41-1385204126689:blk_1074370472_637935, duration: 41356442015-02-10 12:40:00,815 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: PacketResponder: BP-1933761035-10.21.129.41-1385204126689:blk_1074370472_637935, type=HAS_DOWNSTREAM_IN_PIPELINE terminating2015-02-10 12:40:00,819 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Receiving BP-1933761035-10.21.129.41-1385204126689:blk_1074370471_637934 src: /10.21.114.21:18449 dest: /10.21.112.44:500102015-02-10 12:40:00,824 INFO org.apache.hadoop.hdfs.server.datanode.DataNode.clienttrace: src: /10.21.114.21:18449, dest: /10.21.112.44:50010, bytes: 18886, op: HDFS_WRITE, cliID: DFSClient_NONMAPREDUCE_676448049_49, offset: 0, srvID: DS-1793536039-10.21.112.44-50010-1385204142584, blockid: BP-1933761035-10.21.129.41-1385204126689:blk_1074370471_637934, duration: 34883312015-02-10 12:40:00,824 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: PacketResponder: BP-1933761035-10.21.129.41-1385204126689:blk_1074370471_637934, type=LAST_IN_PIPELINE, downstreams=0:[] terminating2015-02-10 12:40:34,482 INFO org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetAsyncDiskService: Scheduling blk_1074370465_637928 file /mnt/disk0/hadoop/data/datanode/current/BP-1933761035-10.21.129.41-1385204126689/current/finalized/subdir29/subdir26/blk_1074370465 for deletion2015-02-10 12:40:34,483 INFO org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetAsyncDiskService: Deleted BP-1933761035-10.21.129.41-1385204126689 blk_1074370465_637928 file /mnt/disk0/hadoop/data/datanode/current/BP-1933761035-10.21.129.41-1385204126689/current/finalized/subdir29/subdir26/blk_10743704652015-02-10 12:41:40,490 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Got a command from standby NN - ignoring command:22015-02-10 12:45:04,490 INFO org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetAsyncDiskService: Scheduling blk_1074370472_637935 file /mnt/storage1/hadoop/data/datanode/current/BP-1933761035-10.21.129.41-1385204126689/current/finalized/subdir52/subdir1/blk_1074370472 for deletion2015-02-10 12:45:04,490 INFO org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetAsyncDiskService: Deleted BP-1933761035-10.21.129.41-1385204126689 blk_1074370472_637935 file /mnt/storage1/hadoop/data/datanode/current/BP-1933761035-10.21.129.41-1385204126689/current/finalized/subdir52/subdir1/blk_1074370472

这些都是什么情况??是正常的么??



已有(1)人评论

跳转到指定楼层
xuanxufeng 发表于 2015-2-10 13:53:35
hadoop  HA配置没有成功,所以导致这个问题。
这有份文档参考下,细心是很重要的。
hadoop2集群搭建过程.zip (7.79 KB, 下载次数: 31)
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条