hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-5778) JobSummary does not escape newlines in the job name
Date Thu, 06 Mar 2014 01:15:44 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-5778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921815#comment-13921815
] 

Akira AJISAKA commented on MAPREDUCE-5778:
------------------------------------------

Attaching a patch, it escapes newlines as follows: 
before
{code}
2014-03-06 07:25:31,476 INFO org.apache.hadoop.mapreduce.jobhistory.JobSummary: jobId=job_1394057583500_0002,submitTime=1394058253665,launchTime=1394058261607,firstMapTaskLaunchTime=1394058264006,firstReduceTaskLaunchTime=1394058271899,finishTime=1394058277328,resourcesPerMap=512,resourcesPerReduce=512,numMaps=1,numReduces=1,user=root,queue=default,status=SUCCEEDED,mapSlotSeconds=5,reduceSlotSeconds=5,jobName=word
count
{code}
after
{code}
2014-03-06 10:09:15,338 INFO org.apache.hadoop.mapreduce.jobhistory.JobSummary: jobId=job_1394067952388_0001,submitTime=1394067985813,launchTime=1394068001404,firstMapTaskLaunchTime=1394068003984,firstReduceTaskLaunchTime=1394068014719,finishTime=1394068023681,resourcesPerMap=512,resourcesPerReduce=512,numMaps=1,numReduces=1,user=root,queue=default,status=SUCCEEDED,mapSlotSeconds=8,reduceSlotSeconds=8,jobName=word[LF]count
{code}

> JobSummary does not escape newlines in the job name
> ---------------------------------------------------
>
>                 Key: MAPREDUCE-5778
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5778
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: jobhistoryserver
>    Affects Versions: 0.23.10, 2.3.0
>            Reporter: Jason Lowe
>            Assignee: Akira AJISAKA
>         Attachments: MAPREDUCE-5778.2.patch, MAPREDUCE-5778.patch
>
>
> JobSummary is not escaping newlines in the job name.  This can result in a job summary
log entry that spans multiple lines when users are expecting one-job-per-line output.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message