[
https://issues.apache.org/jira/browse/HDFS-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron T. Myers updated HDFS-3390:
---------------------------------
Attachment: HDFS-3390.patch
Here's a patch which addresses the issue. It catches all exceptions from
DFSAdmin commands, logs the full stack trace of the exception if
LOG.isDebugEnabled, and then re-throws the exception in all cases.
I tested this manually by setting HADOOP_ROOT_LOGGER=DEBUG,console and running
a few invalid commands, e.g. with illegal arguments or non-HDFS URIs.
> DFSAdmin should print full stack traces of errors when DEBUG logging is
> enabled
> -------------------------------------------------------------------------------
>
> Key: HDFS-3390
> URL: https://issues.apache.org/jira/browse/HDFS-3390
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: hdfs client
> Affects Versions: 2.0.0
> Reporter: Aaron T. Myers
> Assignee: Aaron T. Myers
> Priority: Minor
> Attachments: HDFS-3390.patch
>
>
> If an error is encountered when running an `hdfs dfsadmin ...' command, only
> the exception's message is output. It would be handy for debugging if the
> full stack trace of the exception were output when DEBUG logging is enabled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira