[ 
https://issues.apache.org/jira/browse/HDFS-9120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904927#comment-14904927
 ] 

Arpit Agarwal commented on HDFS-9120:
-------------------------------------

The truncation was intentional.

Instead of an option to avoid truncating, I suggest adding an option to filter 
out specific metrics from the output and add the more verbose metrics to that 
option as deaults. Then you can remove the truncation altogether. What do you 
think?

> Metric logging values are truncated in NN Metrics log.
> ------------------------------------------------------
>
>                 Key: HDFS-9120
>                 URL: https://issues.apache.org/jira/browse/HDFS-9120
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: logging
>            Reporter: Archana T
>            Assignee: Kanaka Kumar Avvaru
>
> In namenode-metrics.log when metric name value pair is more than 128 
> characters, it is truncated as below --
> Example for LiveNodes information is ---
> vi namenode-metrics.log
> {color:red}
> 2015-09-22 10:34:37,891 
> NameNodeInfo:LiveNodes={"host-10-xx-xxx-88:50076":{"infoAddr":"10.xx.xxx.88:0","infoSecureAddr":"10.xx.xxx.88:52100","xferaddr":"10.xx.xxx.88:50076","l...
> {color}
> Here complete information of metric value is not logged.
> etc information being displayed as "..."
> Silimarly for other metric values in NN metrics.
> where as DN metric logs complete metric values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to