MAPREDUCE-5597. Missing alternatives in javadocs for deprecated constructors in mapreduce.Job (Akira AJISAKA via aw)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1617986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Allen Wittenauer 2014-08-14 16:00:18 +00:00
parent 9579554988
commit 92054f2a06
3 changed files with 16 additions and 2 deletions

View File

@ -166,6 +166,11 @@ Trunk (Unreleased)
MAPREDUCE-5363. Fix doc and spelling for TaskCompletionEvent#getTaskStatus MAPREDUCE-5363. Fix doc and spelling for TaskCompletionEvent#getTaskStatus
and getStatus (Akira AJISAKA via aw) and getStatus (Akira AJISAKA via aw)
MAPREDUCE-5595. Typo in MergeManagerImpl.java (Akira AJISAKA via aw)
MAPREDUCE-5597. Missing alternatives in javadocs for deprecated constructors
in mapreduce.Job (Akira AJISAKA via aw)
Release 2.6.0 - UNRELEASED Release 2.6.0 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -54,7 +54,7 @@
* <p>Here is an example on how to submit a job:</p> * <p>Here is an example on how to submit a job:</p>
* <p><blockquote><pre> * <p><blockquote><pre>
* // Create a new Job * // Create a new Job
* Job job = new Job(new Configuration()); * Job job = Job.getInstance();
* job.setJarByClass(MyJob.class); * job.setJarByClass(MyJob.class);
* *
* // Specify various job-specific parameters * // Specify various job-specific parameters
@ -113,16 +113,25 @@ public static enum TaskStatusFilter { NONE, KILLED, FAILED, SUCCEEDED, ALL }
private long statustime; private long statustime;
private Cluster cluster; private Cluster cluster;
/**
* @deprecated Use {@link #getInstance()}
*/
@Deprecated @Deprecated
public Job() throws IOException { public Job() throws IOException {
this(new Configuration()); this(new Configuration());
} }
/**
* @deprecated Use {@link #getInstance(Configuration)}
*/
@Deprecated @Deprecated
public Job(Configuration conf) throws IOException { public Job(Configuration conf) throws IOException {
this(new JobConf(conf)); this(new JobConf(conf));
} }
/**
* @deprecated Use {@link #getInstance(Configuration, String)}
*/
@Deprecated @Deprecated
public Job(Configuration conf, String jobName) throws IOException { public Job(Configuration conf, String jobName) throws IOException {
this(conf); this(conf);

View File

@ -197,7 +197,7 @@ public MergeManagerImpl(TaskAttemptID reduceId, JobConf jobConf,
"memToMemMergeOutputsThreshold=" + memToMemMergeOutputsThreshold); "memToMemMergeOutputsThreshold=" + memToMemMergeOutputsThreshold);
if (this.maxSingleShuffleLimit >= this.mergeThreshold) { if (this.maxSingleShuffleLimit >= this.mergeThreshold) {
throw new RuntimeException("Invlaid configuration: " throw new RuntimeException("Invalid configuration: "
+ "maxSingleShuffleLimit should be less than mergeThreshold" + "maxSingleShuffleLimit should be less than mergeThreshold"
+ "maxSingleShuffleLimit: " + this.maxSingleShuffleLimit + "maxSingleShuffleLimit: " + this.maxSingleShuffleLimit
+ "mergeThreshold: " + this.mergeThreshold); + "mergeThreshold: " + this.mergeThreshold);