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

Iyappan Srinivasan commented on MAPREDUCE-11:
---------------------------------------------


 These are the test scenaros that are tried:

1)      Some normal jobs ( sleep and random writer) gets submitted and it gets 
completed successfully and goes into done folder. All web-links related to it 
goes smoothly including "filter". The contents of the job file shows success.
2)      Some jobs are submitted. JT is restarted to see if there is a recover 
file as well as the original job file. The jobs complete successfully and goes 
into the done folder. The contents of the job file shows success.
3)      Some jobs are submitted. JT goes for a restart. JT comes up back again 
and jobs gets resubmitted. Jobs are 20% completed. JT restarts again. Jobs gets 
resubmitted from the beginning instead of from the 20%. JT restarts again. Jobs 
are again resubmitted. The jobs complete successfully and goes into the done 
folder. The contents of the job file shows success.
4)      Some jobs are submitted. JT is stopped. After 5 minutes, it is 
restarted. One of the TTs gets job level blacklisted. Still, the jobs are 
resubmitted and passes to the "done" folder.
5)      Kill job tracker as soon as some jobs starts, when they had a "0" file 
size. Restart JT. These jobs should get resubmitted and pass successfully.
6)      Submit jobs, do JT restart and when jobs gets resubmitted, kill those 
jobs using "job -kill". They shd be killed properly and move to done folder 
with correct file contents.


Two issue found are :
1) 
org.apache.hadoop.ipc.RemoteException: 
org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed to create 
file 
/user/hadoopqa/input3/_logs/history/servername.inktomisearch.com_job_200907151220_0003_conf.xml
 for DFSClient_-123 on client IPAddress because current leaseholder is trying 
to recreate file.
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:888)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFile(FSNamesystem.java:821)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.create(NameNode.java:565)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:964)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:960)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:958)

        at org.apache.hadoop.ipc.Client.call(Client.java:743)
        at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
        at $Proxy0.create(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
        at $Proxy0.create(Unknown Source)
        at 
org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.<init>(DFSClient.java:2932)
        at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:436)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:206)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:529)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:503)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:484)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:391)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:383)
        at 
org.apache.hadoop.mapred.JobHistory$JobInfo.logSubmitted(JobHistory.java:1082)
        at 
org.apache.hadoop.mapred.JobInProgress.logToJobHistory(JobInProgress.java:589)

2) 2009-07-15 11:36:31,576 ERROR org.mortbay.log: /jobdetailshistory.jsp
java.lang.IllegalArgumentException: No enum const class 
org.apache.hadoop.mapred.JobHistory$RecordTypes.b0VIM
        at java.lang.Enum.valueOf(Enum.java:192)
        at 
org.apache.hadoop.mapred.JobHistory$RecordTypes.valueOf(JobHistory.java:233)
        at org.apache.hadoop.mapred.JobHistory.parseLine(JobHistory.java:465)
        at org.apache.hadoop.mapred.JobHistory.access$200(JobHistory.java:75)
        at 
org.apache.hadoop.mapred.JobHistory$MetaInfoManager.<init>(JobHistory.java:337)
        at 
org.apache.hadoop.mapred.JobHistory.parseHistoryFromFS(JobHistory.java:415)
        at 
org.apache.hadoop.mapred.DefaultJobHistoryParser.parseJobTasks(DefaultJobHistoryParser.java:50)
        at org.apache.hadoop.mapr

Both are intermittent issues.

> Cleanup JobHistory file naming to do with job recovery
> ------------------------------------------------------
>
>                 Key: MAPREDUCE-11
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-11
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Devaraj Das
>         Attachments: MAPREDUCE-11-v1.8.patch
>
>
> The JobTracker uses the job history files for doing job recovery upon 
> startup. To handle cases where JobTracker goes down again while the recovered 
> job is running, there is some logic that plays with files and it ends up 
> having two history files for some window of time during the life of the job - 
> actual history file, .recover file. The idea being that upon the next restart 
> we should be able to the maximal number of events for the job. It led to 
> performance problems in the job submission / recovery (part of which got 
> addressed in HADOOP-4372). It also looks pretty unlikely that a running job 
> will traverse across multiple JT restarts. Even if it did, without the 
> .recover file, it'd only mean that we lose some tasks that got completed in a 
> subsequent restart. I propose that we remove the .recover file logic and base 
> the recovery on only the original job history file. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to