nijel created HDFS-9163: --------------------------- Summary: [OIV and OEV] : Avoid stack trace at client side (shell) Key: HDFS-9163 URL: https://issues.apache.org/jira/browse/HDFS-9163 Project: Hadoop HDFS Issue Type: Sub-task Reporter: nijel Assignee: nijel
In some error cases, it prints the stack trace in console. eg: {code} master:/home/nijel/hadoop-3.0.0-SNAPSHOT/bin # ./hdfs oev -i invalidFile -o test Encountered exception. Exiting: invalidFile (No such file or directory) java.io.FileNotFoundException: invalidFile (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream$FileLog.getInputStream(EditLogFileInputStream.java:390) at org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.init(EditLogFileInputStream.java:140) at org.apache.hadoop.hdfs.server.namenode.EditLogFileInputStream.getVersion(EditLogFileInputStream.java:265) at org.apache.hadoop.hdfs.tools.offlineEd {code} Log can have exception trace. Console can be bit clean with only error message -- This message was sent by Atlassian JIRA (v6.3.4#6332)