Hadoop Streaming Job - 在地图上停留的python 0%在CDH4.5中降低0%

时间:2014-02-02 13:40:52

标签: python hadoop hadoop-streaming

我在cloudera发行版4.5中使用了一个hadoop流媒体作业,但它没有超越地图0%阶段,我也不确定我可以查看的日志在哪里,原谅我在hadoop中的天真。

[amgen@sa-dpoc10 code]$ hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-0.20-      mapreduce/contrib/streaming/hadoop-streaming-2.0.0-mr1-cdh4.5.0.jar -mapper  /home/amgen/Amgen_UC1/code/mapper.py -file  /home/amgen/Amgen_UC1/code/mapper.py -reducer /home/amgen/Amgen_UC1/code/reducer.py -file /home/amgen/Amgen_UC1/code/reducer.py  -input /user/amgen/Amgen_UC1/input/Corpus_VoiceBase.txt -output /user/amgen/Amgen_UC1/output_t1
packageJobJar: [/home/amgen/Amgen_UC1/code/mapper.py,/home/amgen/Amgen_UC1/code/reducer.py, /tmp/hadoop-amgen/hadoop-unjar665443284079561966/] [] /tmp/streamjob722830427268220086.jar tmpDir=null
14/02/02 07:16:52 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
14/02/02 07:16:53 INFO mapred.FileInputFormat: Total input paths to process : 1
14/02/02 07:16:53 INFO streaming.StreamJob: getLocalDirs(): [/tmp/hadoop amgen/mapred/local]
14/02/02 07:16:53 INFO streaming.StreamJob: Running job: job_201401231022_0068
14/02/02 07:16:53 INFO streaming.StreamJob: To kill this job, run:
14/02/02 07:16:53 INFO streaming.StreamJob: UNDEF/bin/hadoop job  -Dmapred.job.tracker=sa-dpoc16.zs.local:8021 -kill job_201401231022_0068
14/02/02 07:16:53 INFO streaming.StreamJob: Tracking URL: http://sa-dpoc16.zs.local:50030/jobdetails.jsp?jobid=job_201401231022_0068
14/02/02 07:16:54 INFO streaming.StreamJob:  map 0%  reduce 0%

如果您需要任何配置文件,请告诉我。

2 个答案:

答案 0 :(得分:0)

您可以通过namenode UI检查namenode日志

http://yourdomain.com:50070/dfshealth.jsp

在那里你可以找到namenodelogs的超链接,它将打开日志列表和xmls。通常,作业日志位于userlogs文件夹

您还可以使用作业跟踪器UI

跟踪作业

http://yourdomain.com:50030/jobtracker.jsp

答案 1 :(得分:0)

上面的作业输出包含指向job details

的链接

你可以看看映射器是否失败并查看那里的映射器的stdout和stderr,看看那里是否有任何python异常。