Mingliang Liu created HDFS-10986: ------------------------------------ Summary: DFSAdmin should show detailed error message if any Key: HDFS-10986 URL: https://issues.apache.org/jira/browse/HDFS-10986 Project: Hadoop HDFS Issue Type: Bug Components: tools Affects Versions: 2.8.0 Reporter: Mingliang Liu Assignee: Mingliang Liu
There are some subcommands in {{DFSAdmin}} that swallow IOException and give very limited error message, if any, to the stderr. {code} $ hdfs dfsadmin -getDatanodeInfo localhost:9866 Datanode unreachable. $ hdfs dfsadmin -evictWriters 127.0.0.1:9866 $ echo $? -1 {code} We should fix this by providing detailed error message. Actually, the {{DFSAdmin#run}} already handles exception carefully. All we need to do is to not swallow exceptions without good reason. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org