HDFS-9284. fsck command should not print exception trace when file not found. Contributed by Jagadesh Kiran N.
(cherry picked from commit 677a936bf7
)
This commit is contained in:
parent
7d25646741
commit
9850827c24
|
@ -737,6 +737,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
BlockInfoUnderConstruction#setGenerationStampAndVerifyReplicas.
|
BlockInfoUnderConstruction#setGenerationStampAndVerifyReplicas.
|
||||||
(Wei-Chiu Chuang via Yongjun Zhang)
|
(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
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||||
|
|
|
@ -41,7 +41,6 @@ import org.apache.hadoop.hdfs.server.namenode.NamenodeFsck;
|
||||||
import org.apache.hadoop.hdfs.web.URLConnectionFactory;
|
import org.apache.hadoop.hdfs.web.URLConnectionFactory;
|
||||||
import org.apache.hadoop.security.UserGroupInformation;
|
import org.apache.hadoop.security.UserGroupInformation;
|
||||||
import org.apache.hadoop.security.authentication.client.AuthenticationException;
|
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.Tool;
|
||||||
import org.apache.hadoop.util.ToolRunner;
|
import org.apache.hadoop.util.ToolRunner;
|
||||||
|
|
||||||
|
@ -315,7 +314,7 @@ public class DFSck extends Configured implements Tool {
|
||||||
namenodeAddress = getCurrentNamenodeAddress(dirpath);
|
namenodeAddress = getCurrentNamenodeAddress(dirpath);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
System.err.println("FileSystem is inaccessible due to:\n"
|
System.err.println("FileSystem is inaccessible due to:\n"
|
||||||
+ StringUtils.stringifyException(ioe));
|
+ ioe.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (namenodeAddress == null) {
|
if (namenodeAddress == null) {
|
||||||
|
|
Loading…
Reference in New Issue