apache/hadoop · error · IllegalArgumentException
-v is valid only with -log option
Error message
-v is valid only with -log option
What it means
Error "-v is valid only with -log option" thrown in apache/hadoop.
Source
Thrown at hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpOptions.java:641
throw new IllegalArgumentException(
"-diff/-rdiff is valid only with -update option");
}
if (useDiff || useRdiff) {
if (StringUtils.isBlank(fromSnapshot) ||
StringUtils.isBlank(toSnapshot)) {
throw new IllegalArgumentException(
"Must provide both the starting and ending " +
"snapshot names for -diff/-rdiff");
}
}
if (useDiff && useRdiff) {
throw new IllegalArgumentException(
"-diff and -rdiff are mutually exclusive");
}
if (verboseLog && logPath == null) {
throw new IllegalArgumentException(
"-v is valid only with -log option");
}
}
@VisibleForTesting
Builder withSourcePaths(List<Path> newSourcePaths) {
this.sourcePaths = newSourcePaths;
return this;
}
public Builder withAtomicCommit(boolean newAtomicCommit) {
this.atomicCommit = newAtomicCommit;
return this;
}
public Builder withAtomicWorkPath(Path newAtomicWorkPath) {
this.atomicWorkPath = newAtomicWorkPath;
return this;View on GitHub (pinned to 2add963021)
Solutions
- Specify -log <dir> together with -v (verbose).
- Drop -v if no log output directory is needed.
When it happens
Trigger: distcp -v is used without the -log option.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/e48140c8d7dd54f7.
Report an issue: GitHub.