- 浏览: 62949 次
- 来自: 深圳
最新评论
-
小英子:
求demo 375681112@qq.om
Android海康监控视频调用demo -
xch_yang:
你好,请问能否发送一下这个demo给我呢,非常感谢。我的邮箱是 ...
Android海康监控视频调用demo -
cheng8160:
你好,请问能否发送一下这个demo给我呢,非常感谢。我的邮箱是 ...
Android海康监控视频调用demo -
caonima186:
你好 给我一份吧 谢谢 451007821@qq.com
Android海康监控视频调用demo -
zhuangshuo:
你好 给我一份吧 谢谢 919036095@qq.com
Android海康监控视频调用demo
昨晚突然之间mr跑步起来了
jps查看 进程都在的,但是在reduce任务跑了85%的时候会抛异常
异常情况如下:
看到这里以为是副本问题
随后把副本改为三个还是出现此异常。然后把集群从启一下发现datanode没有能够启动
后面查看日志发现datanode启动异常
随后手动把namenode和datanode 的clusterID 统一了,后面集群启动成功,但是程序异常依旧,最后把namenode和datanode统一格式化,程序正常运行。
参考:
http://stackoverflow.com/questions/15571584/writing-to-hdfs-could-only-be-replicated-to-0-nodes-instead-of-minreplication
https://issues.apache.org/jira/browse/HDFS-107
jps查看 进程都在的,但是在reduce任务跑了85%的时候会抛异常
异常情况如下:
2016-09-21 21:32:28,538 INFO [org.apache.hadoop.mapreduce.Job] - map 100% reduce 84% 2016-09-21 21:32:30,623 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:33,626 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:36,627 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:39,628 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:42,630 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:45,632 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:48,634 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:51,634 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:54,636 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:32:57,638 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:00,639 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:03,641 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:04,554 INFO [org.apache.hadoop.mapreduce.Job] - map 100% reduce 85% 2016-09-21 21:33:06,643 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:09,644 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:12,645 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:15,648 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:18,650 INFO [org.apache.hadoop.mapred.LocalJobRunner] - reduce > reduce 2016-09-21 21:33:19,268 WARN [org.apache.hadoop.hdfs.DFSClient] - DataStreamer Exception org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /anagram/out/_temporary/0/_temporary/attempt_local946954997_0001_r_000000_0/part-r-00000 could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and no node(s) are excluded in this operation. at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget(BlockManager.java:1384) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:2477) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:555) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:387) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:59582) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:928) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2048) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2044) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2042) at org.apache.hadoop.ipc.Client.call(Client.java:1347) at org.apache.hadoop.ipc.Client.call(Client.java:1300) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206) at com.sun.proxy.$Proxy9.addBlock(Unknown Source) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102) at com.sun.proxy.$Proxy9.addBlock(Unknown Source) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.addBlock(ClientNamenodeProtocolTranslatorPB.java:330) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:1226) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1078) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:514) 2016-09-21 21:33:19,330 WARN [org.apache.hadoop.mapred.LocalJobRunner] - job_local946954997_0001 org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /anagram/out/_temporary/0/_temporary/attempt_local946954997_0001_r_000000_0/part-r-00000 could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and no node(s) are excluded in this operation. at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget(BlockManager.java:1384) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:2477) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:555) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:387) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:59582) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:928) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2048) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2044) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2042) at org.apache.hadoop.ipc.Client.call(Client.java:1347) at org.apache.hadoop.ipc.Client.call(Client.java:1300) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206) at com.sun.proxy.$Proxy9.addBlock(Unknown Source) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102) at com.sun.proxy.$Proxy9.addBlock(Unknown Source) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.addBlock(ClientNamenodeProtocolTranslatorPB.java:330) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:1226) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1078) at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:514) 2016-09-21 21:33:19,560 INFO [org.apache.hadoop.mapreduce.Job] - Job job_local946954997_0001 failed with state F
看到这里以为是副本问题
could only be replicated to 0 nodes instead of minReplication (=1).
随后把副本改为三个还是出现此异常。然后把集群从启一下发现datanode没有能够启动
后面查看日志发现datanode启动异常
java.io.IOException: Incompatible clusterIDs in /data/dfs/data: namenode clusterID = CID-70f4fcbc-13a2-4918-a90a-5a7b4b47baa8; datanode clusterID = CID-be72a034-047f-4d49-bb40-dd411b8007e6 at org.apache.hadoop.hdfs.server.datanode.DataStorage.doTransition(DataStorage.java:391) at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:191) at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:219) at org.apache.hadoop.hdfs.server.datanode.DataNode.initStorage(DataNode.java:837) at org.apache.hadoop.hdfs.server.datanode.DataNode.initBlockPool(DataNode.java:808) at org.apache.hadoop.hdfs.server.datanode.BPOfferService.verifyAndSetNamespaceInfo(BPOfferService.java:280) at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.connectToNNAndHandshake(BPServiceActor.java:222) at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:664) at java.lang.Thread.run(Thread.java:745) 2016-09-21 15:57:22,786 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Ending block pool service for: Block pool BP-1394444749-192.168.19.130-1474417014093 (storage id DS-433243534-192.168.19.130-50010-1473626296058) service to selfimpr/192.168.19.130:9000 2016-09-21 15:57:22,938 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Removed Block pool BP-1394444749-192.168.19.130-1474417014093 (storage id DS-433243534-192.168.19.130-50010-1473626296058) 2016-09-21 15:57:24,939 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode 2016-09-21 15:57:24,940 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 0
随后手动把namenode和datanode 的clusterID 统一了,后面集群启动成功,但是程序异常依旧,最后把namenode和datanode统一格式化,程序正常运行。
参考:
http://stackoverflow.com/questions/15571584/writing-to-hdfs-could-only-be-replicated-to-0-nodes-instead-of-minreplication
https://issues.apache.org/jira/browse/HDFS-107
发表评论
-
YARN中自己总结的几个关键点
2016-12-11 15:43 1以前在Hadoop 1.0中JobTracker主要完成两项功 ... -
YARN中自己总结的几个关键点
2016-12-11 15:43 771以前在Hadoop 1.0中JobTracke ... -
Flume应用场景及架构原理
2016-12-10 18:53 1430Flume概念 Flume是一个分布式、可靠、和高可用的海量 ... -
zookeeper集群某个follower启动失败
2016-12-07 20:28 810配置完成zookeeper集群,发现有一个节点,进程正常但是状 ... -
HDFS 和YARN HA 简介
2016-12-07 13:34 618HDFS: 基础架构 1、NameNode(Master) ... -
cdh集群数据恢复
2016-12-01 22:03 1032CDH 数据库 磁盘坏了 所有集群配置 都没了 而且 ... -
mapreduce流程中的几个关键点
2016-11-12 20:46 651MapReduce中数据流动 (1)最简单的过程: m ... -
MapReduce二次排序
2016-11-07 14:51 1166默认情况下,Map 输出的结果会对 Key 进行默认 ... -
Hadoop自定义分组Group
2016-11-07 12:35 495matadata: hadoop a spark ... -
编译hadoop2.6.0
2016-10-29 23:24 511具体情况比较曲折:hadoop2.6.0编译不过 错误如下: ... -
ERROR [org.apache.hadoop.security.UserGroupInformation] - PriviledgedActionExcep
2016-10-20 10:23 1039换了个环境,出现此异常 016-10-18 23:54:01, ...
相关推荐
必须将此jar包放在org.apache.hadoop.io包下,否则无法正常覆盖使用
Java-org.apache.hadoop是Apache Hadoop项目的核心组件,它在分布式计算领域扮演着至关重要的角色。Hadoop是由Apache软件基金会开发的一个开源框架,主要用于处理和存储大量数据。它设计的初衷是为了支持数据密集型...
包org.apache.hadoop.mapreduce的Hadoop源代码分析
org.apache.hadoop.io.serializer.avro org.apache.hadoop.jmx org.apache.hadoop.lib.lang org.apache.hadoop.lib.server org.apache.hadoop.lib.service org.apache.hadoop.lib.service.hadoop org.apache....
NULL 博文链接:https://ouyida3.iteye.com/blog/1144326
ERROR org.apache.hadoop.mapred.TaskTracker: Can not start task tracker because java.io.IOException: Failed to set permissions of path: \tmp\hadoop-admin \mapred\local\ttprivate to 0700 at org.apache...
Hive错误之 Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask错误分析_xiaohu21的博客-CSDN博客.mht
解决方案:Exceptionin thread "main" java.lang.UnsatisfiedLinkError:org.apache.hadoop.util.NativeCrc32.nativeCo
Exception in thread main org.apache.hadoop.security.AccessControlException: Permission ...Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission
org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode0(Ljava/lang/String;I)V 解决方案:下载本资源解压将hadoop.dll和winutils.exe文件复制到hadoop2.7.3的bin目录下即可解决。
hadoop. io. nativeio. NativeIOSWindows . access0 (Ijava/ lang/String;I)Z 原因:在调用NativeIO中的access0()时调不到 解决方法:①第一步:在项目工程中加入NativelO.java,注意包名必须与源码中...
看清楚版本,想要其他版本的可以私聊我,版本经测试,可以用,请大家放心下载使用
hadoop支持LZO压缩配置 将...org.apache.hadoop.io.compress.GzipCodec, org.apache.hadoop.io.compress.DefaultCodec, org.apache.hadoop.io.compress.BZip2Codec, org.apache.hadoop.io.compress.SnappyCodec, ...
Exception in thread "main" java.lang.UnsatisfiedLinkError:''boolean org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(java.lang.String, int)' * at org.apache.hadoop.io.nativeio.NativeIO$...
Maven坐标:org.apache.hadoop:hadoop-mapreduce-client-common:2.6.5; 标签:apache、mapreduce、common、client、hadoop、jar包、java、API文档、中英对照版; 使用方法:解压翻译后的API文档,用浏览器打开...
IDEA中通过Java的API操作MapReducer报错org.apache.hadoop.io.nativeio.NativeIO$Windows...的解决办法(进来看一下)-附件资源
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:378) at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:393) at org.apache.hadoop.util.Shell.(Shell.java:386) at org.apache....
4. **数据存储与序列化**:Hadoop使用`org.apache.hadoop.io`包处理数据的存储和序列化,包括各种基本类型(如IntWritable、Text等)和复杂的可序列化对象(如SequenceFile、Avro等)。 5. **配置管理**:`org....
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 通过控制台的...