use System.err.print for the warning message

This commit is contained in:
zhaoym6 2020-07-06 12:01:25 +08:00
parent 887ff39b30
commit 3c4f9ee8f1
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ public class DFSAdmin extends FsShell {
"\" is not a valid value for a quota.");
}
if (HdfsConstants.QUOTA_DONT_SET == this.quota) {
System.out.print("WARN: \"" + this.quota +
System.err.print("WARN: \"" + this.quota +
"\" means QUOTA_DONT_SET, quota will not be set, "
+ "it keep the old values. \n");
}
@ -335,7 +335,7 @@ public class DFSAdmin extends FsShell {
throw new IllegalArgumentException("\"" + str + "\" is not a valid value for a quota.");
}
if (HdfsConstants.QUOTA_DONT_SET == quota) {
System.out.print("WARN: \"" + this.quota +
System.err.print("WARN: \"" + this.quota +
"\" means QUOTA_DONT_SET, quota will not be set, "
+ "it keep the old values. \n");
}