- 浏览: 1183926 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (350)
- Ajax研究 (2)
- javascript (22)
- struts (15)
- hibernate (12)
- spring (8)
- 我的生活 (28)
- jsp (2)
- 我的随笔 (84)
- 脑筋急转弯 (1)
- struts2 (2)
- ibatis (1)
- groovy (1)
- json (4)
- flex (20)
- Html Css (5)
- lucene (11)
- solr研究 (2)
- nutch (25)
- ExtJs (3)
- linux (6)
- 正则表达式 (2)
- xml (1)
- jetty (0)
- 多线程 (1)
- hadoop (40)
- mapreduce (5)
- webservice (2)
- 云计算 (8)
- 创业计划 (1)
- android (8)
- jvm内存研究 (1)
- 新闻 (2)
- JPA (1)
- 搜索技术研究 (2)
- perl (1)
- awk (1)
- hive (7)
- jvm (1)
最新评论
-
pandaball:
支持一下,心如大海
做有气质的男人 -
recall992:
山东分公司的风格[color=brown]岁的法国电视[/co ...
solr是如何存储索引的 -
zhangsasa:
-services "services-config ...
flex中endpoint的作用是什么? -
来利强:
非常感谢
java使用json所需要的几个包 -
zhanglian520:
有参考价值。
hadoop部署错误之一:java.lang.IllegalArgumentException: Wrong FS
测试下载一个大文件是否会出现Task attempt_201010291725_0041_m_000000_1 failed to report status for 602 seconds. Killing!
1、找一个比较大的文件:http://down1.520sys.cn/down/tomato/FQ_GhostXPsp3_1.5_%B4%BF%BE%BB%B0%E6.iso ,这个文件大约 600M.
2、做一个简单的MapReduce程序,实现下载-上述链接。
a: 创建一个文件,此文件就存放所要下载的URL.并且上传到HDFS.
b: 创建一个DownloadMapper类,该类extends Mapper,在这个类中实现下载URL,把所下载的内容直接写入到HDFS中。
c:在主函数DownloadMain中启动downloadJob.
3、启动download.job
root@se-test1-desktop:~/hadoop/program# tail -f dowload.log
10/11/09 12:58:55 INFO main.DownloadMain: downloadMain start .....
10/11/09 12:58:55 INFO main.DownloadMain: /tmp/ddow copy successfully
10/11/09 12:58:55 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
10/11/09 12:59:04 INFO input.FileInputFormat: Total input paths to process : 1
10/11/09 12:59:10 INFO mapred.JobClient: Running job: job_201010291725_0041
10/11/09 12:59:11 INFO mapred.JobClient: map 0% reduce 0%
10/11/09 12:59:29 INFO mapred.JobClient: map 100% reduce 0%
10/11/09 13:09:33 INFO mapred.JobClient: map 0% reduce 0%
10/11/09 13:09:35 INFO mapred.JobClient: Task Id : attempt_201010291725_0041_m_000000_0, Status : FAILED
Task attempt_201010291725_0041_m_000000_0 failed to report status for 602 seconds. Killing!
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0020320 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0017580 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0003120 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0001860 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0004730 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0015730 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0002630 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0004870 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0005290 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0008870 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0005540 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0005600 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0009300 seconds
4、从日志中可以看出,当下载一个比较大的文件时,需要一定的时间,当这个时间超过配置文件所配置的(mapred.task.timeout--默认600)时间时,就会出现”failed to report status for 602 seconds. Killing!“。
总结 :经过上述的一个测试我们看出:
a:在我们自己的MapReduce程序当中所做的工作尽量不要超过默认配置的时间。
1、找一个比较大的文件:http://down1.520sys.cn/down/tomato/FQ_GhostXPsp3_1.5_%B4%BF%BE%BB%B0%E6.iso ,这个文件大约 600M.
2、做一个简单的MapReduce程序,实现下载-上述链接。
a: 创建一个文件,此文件就存放所要下载的URL.并且上传到HDFS.
b: 创建一个DownloadMapper类,该类extends Mapper,在这个类中实现下载URL,把所下载的内容直接写入到HDFS中。
c:在主函数DownloadMain中启动downloadJob.
3、启动download.job
root@se-test1-desktop:~/hadoop/program# tail -f dowload.log
10/11/09 12:58:55 INFO main.DownloadMain: downloadMain start .....
10/11/09 12:58:55 INFO main.DownloadMain: /tmp/ddow copy successfully
10/11/09 12:58:55 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
10/11/09 12:59:04 INFO input.FileInputFormat: Total input paths to process : 1
10/11/09 12:59:10 INFO mapred.JobClient: Running job: job_201010291725_0041
10/11/09 12:59:11 INFO mapred.JobClient: map 0% reduce 0%
10/11/09 12:59:29 INFO mapred.JobClient: map 100% reduce 0%
10/11/09 13:09:33 INFO mapred.JobClient: map 0% reduce 0%
10/11/09 13:09:35 INFO mapred.JobClient: Task Id : attempt_201010291725_0041_m_000000_0, Status : FAILED
Task attempt_201010291725_0041_m_000000_0 failed to report status for 602 seconds. Killing!
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0020320 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0017580 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0003120 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0001860 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0004730 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0015730 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0002630 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0004870 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0005290 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0008870 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0005540 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0005600 seconds
attempt_201010291725_0041_m_000000_0: Total time for which application threads were stopped: 0.0009300 seconds
4、从日志中可以看出,当下载一个比较大的文件时,需要一定的时间,当这个时间超过配置文件所配置的(mapred.task.timeout--默认600)时间时,就会出现”failed to report status for 602 seconds. Killing!“。
总结 :经过上述的一个测试我们看出:
a:在我们自己的MapReduce程序当中所做的工作尽量不要超过默认配置的时间。
发表评论
-
Java并发编程总结---Hadoop核心源码实例解读
2012-04-01 15:46 2192程序设计需要同步(synchronization),原因:1) ... -
使用hadoop的lzo问题!
2011-08-24 17:12 2638使用lzo压缩替换hadoop原始的Gzip压缩。相比之下有如 ... -
secondarynamenode配置使用总结
2011-07-07 08:37 7549一、环境 Hadoop 0.20.2、JDK 1.6、Lin ... -
Map/Reduce中的Combiner的使用
2011-07-07 08:36 4763一、作用 1、combiner最基本是实现本地key的聚合, ... -
Map/Reduce中的Partiotioner使用
2011-07-07 08:35 1870一、环境 1、hadoop 0.20.2 2、操作系统Li ... -
hadoop如何添加节点
2011-07-06 12:43 14891.部署hadoop 和普通的datanode一样。安装 ... -
hadoop如何恢复namenode
2011-07-06 12:36 8535Namenode恢复 1.修改conf/core-site.x ... -
Hadoop删除节点(Decommissioning Nodes)
2011-07-06 11:52 25721.集群配置 修改conf/hdfs-site.xml ... -
hadoop知识点整理
2011-07-06 11:51 26771. Hadoop 是什么? Hadoop 是一种使用 Ja ... -
喜欢hadoop的同学们值得一看
2011-07-03 15:50 2016海量数据正在不断生成,对于急需改变自己传统IT架构的企业而 ... -
hadoop优化
2011-07-03 15:43 1336一. conf/hadoop-site.xml配置, 略过. ... -
hadoop分配任务的问题
2011-05-16 23:09 5请教大家一个关于hadoop分配任务的问题: 1、根据机器 ... -
hadoop-FAQ
2011-05-15 11:38 725hadoop基础,挺详细的。希望对大家有用! -
Apache Hadoop 0.21版本新功能ChangeNode
2011-04-21 22:04 1999Apache Hadoop 0.21.0 在2010年8月23 ... -
Hadoop关于处理大量小文件的问题和解决方法
2011-04-21 11:07 2515小文件指的是那些size比 ... -
hadoop常见错误及解决办法!
2011-04-07 12:18 96469转: 1:Shuffle Error: Exceede ... -
Hadoop节点热拔插
2011-04-07 12:16 1632转 : 一、 Hadoop节点热 ... -
hadoop动态添加节点
2011-04-07 12:14 2011转: 有的时候, datanode或者tasktrac ... -
欢迎大家讨论hadoop性能优化
2011-04-06 15:42 1301大家知道hadoop这家伙是非常吃内存的。除了加内存哦! 如 ... -
hadoop错误之二:could only be replicated to 0 nodes, instead of 1
2011-02-22 08:23 2358WARN hdfs.DFSClient: NotReplic ...
相关推荐
python安装pyhs2 failed with exit status 2错误,需要手动安装,首先安装pip,然后命令安装,进入d:\python2.7\Scripts,pip install sasl-0.2.1-cp27-cp27m-win_amd64.whl, 在pip intall pyhs2 pyhs2-0.6.0-py2.py...
本文将深入探讨标题和描述中提到的问题:“解决dbf Failed to parse Number: For input string: "-.---""”,以及如何在不依赖特定jar包的情况下处理DBF文件。 首先,"Failed to parse Number: For input string: ...
标题中的“Failed to load VBA project for display”和描述中提到的问题是用户在尝试编辑RSView SE(一种工业人机界面软件)中的图形显示VBA代码时遇到的错误。这个错误提示表明系统无法加载VBA(Visual Basic for ...
在Kali Linux操作系统中,"Failed to start Network Manager"是一个常见的错误提示,它意味着网络管理器服务无法正常启动,导致用户可能无法连接到网络。这个问题可能是由多种原因引起的,包括软件包损坏、系统配置...
### 解决Ubuntu安装时出现“Failed to load ldlinux.c32”的问题 #### 背景与概述 在使用U盘进行Ubuntu系统(版本16.04及以上)的安装过程中,用户可能会遇到一个常见的错误:“Failed to load ldlinux.c32”。这...
"线上问题分析:The target server failed to respond(目标服务器返回失败)" 知识点总结 在本文中,我们将分析一个常见的线上问题,即目标服务器返回失败(The target server failed to respond)。我们将从多个...
vbsedit Failed to load pdm.dll解决办法. 带有详细的使用说明 安装 vbsedit 运行时 来提示vbsedit Failed to load pdm.dll 千辛万苦找到的 很好用的解决办法
win2000开机出现报错error failed to load kernel library,win2000开机出现报错error failed to load kernel library
在IT行业中,我们经常遇到各种错误,"failed to execute script"是其中之一,尤其在尝试运行Python脚本时。这个问题通常发生在使用Python的`py`或`exe`可执行文件时,尤其是在试图通过命令行传递参数时。让我们深入...
然而,有时在使用VbsEdit时可能会遇到"Failed to load pdm.dll"的错误。这个错误通常意味着程序尝试加载pdm.dll动态链接库时失败,可能是由于以下原因: 1. **缺失或损坏的文件**:pdm.dll是某些应用程序或系统进程...
For more information, see Connecting to an ESX host using an SSH client (1019852). 2.Take a backup of the /etc/vmware/config file using this command: cp /etc/vmware/config /var/tmp/ 3. Edit the /...
Failed to Save Report(解决方案).md
Failed to Generate Report(解决方案).md
log4j:ERROR Failed to rename
解决log4j:ERROR Failed to rename, win系统占用文件无法改名字的问题
Jboss启动报Failed to parse WEB-INF/web.xml; - nested throwable错误解决方案 在Jboss应用服务器中,启动报错Failed to parse WEB-INF/web.xml; - nested throwable是一种常见的错误,本文将对此错误进行深入分析...
log4j:ERROR Failed to rename错误; 网上查找了下原因,大概意思是日志文件始终被占有,所以当log4j对日志文件进行rename时,就发生了Failed to rename错误 。要修改log4j的源码,附件是我修改好后的,方便大家...
然而,在使用PyInstaller处理包含pyzbar库的项目时,可能会遇到“Failed to load dynlib/dll”错误。本文将详细探讨这个问题的原因、解决方法以及pyzbar库的相关知识。 pyzbar是Python的一个库,用于解码多种条形码...
Android Studio 安装 Java 配置及常见问题解答 Android Studio 是 Google 推出的一个集成开发环境(IDE),主要用于 Android 应用程序的开发。为了使用 Android Studio,需要安装 Java 环境变量配置和 Android SDK...
在使用Apache HttpClient进行HTTP通信时,可能会遇到"HttpClient问题:The server failed to respond with a valid HTTP resp"这样的异常。这个错误通常表示服务器未能返回一个有效的HTTP响应,这可能是由多种原因...