HDFS-9284. fsck command should not print exception trace when file not found. Contributed by Jagadesh Kiran N.

This commit is contained in:
Andrew Wang 2015-10-26 15:15:03 -07:00
parent a01a209fbe
commit 677a936bf7
2 changed files with 4 additions and 2 deletions

View File

@ -1573,6 +1573,9 @@ Release 2.8.0 - UNRELEASED
BlockInfoUnderConstruction#setGenerationStampAndVerifyReplicas.
(Wei-Chiu Chuang via Yongjun Zhang)
HDFS-9284. fsck command should not print exception trace when file not
found. (Jagadesh Kiran N via wang)
OPTIMIZATIONS
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than

View File

@ -41,7 +41,6 @@
import org.apache.hadoop.hdfs.web.URLConnectionFactory;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.authentication.client.AuthenticationException;
import org.apache.hadoop.util.StringUtils;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
@ -317,7 +316,7 @@ else if (args[idx].equals("-list-corruptfileblocks")) {
namenodeAddress = getCurrentNamenodeAddress(dirpath);
} catch (IOException ioe) {
System.err.println("FileSystem is inaccessible due to:\n"
+ StringUtils.stringifyException(ioe));
+ ioe.toString());
}
if (namenodeAddress == null) {