apache/hadoop · error · IllegalArgumentException
Job priority cannot be null.
Error message
Job priority cannot be null.
What it means
Guard in JobStatus.setPriority: the protected setter refuses a null JobPriority. Callers (framework/schedulers updating job status) must pass a concrete priority; null has no meaning, so IllegalArgumentException is thrown rather than defaulting. This is a null-validation helper, not a state error — the faulting input is the null jp argument.
Solutions
- Provide a non-null JobPriority when constructing or updating the JobStatus.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobStatus.java:260 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/65be2d628b52dc2e.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobStatus.java:260
protected synchronized void setSetupProgress(float p) {
this.setupProgress = (float) Math.min(1.0, Math.max(0.0, p));
}
/**
* Sets the reduce progress of this Job
* @param p The value of reduce progress to set to
*/
protected synchronized void setReduceProgress(float p) {
this.reduceProgress = (float) Math.min(1.0, Math.max(0.0, p));
}
/**
* Set the priority of the job, defaulting to NORMAL.
* @param jp new job priority
*/
protected synchronized void setPriority(JobPriority jp) {
if (jp == null) {
throw new IllegalArgumentException("Job priority cannot be null.");
}
priority = jp;
}
/**
* Set the finish time of the job
* @param finishTime The finishTime of the job
*/
protected synchronized void setFinishTime(long finishTime) {
this.finishTime = finishTime;
}
/**
* Set the job history file url for a completed job
*/
protected synchronized void setHistoryFile(String historyFile) {
this.historyFile = historyFile;
}View on GitHub (pinned to 2add963021)