You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hongyu Cai (Jira)" <ji...@apache.org> on 2021/04/24 14:13:00 UTC

[jira] [Created] (HADOOP-17662) Hadoop Customed Counter

Hongyu Cai created HADOOP-17662:
-----------------------------------

             Summary: Hadoop Customed Counter
                 Key: HADOOP-17662
                 URL: https://issues.apache.org/jira/browse/HADOOP-17662
             Project: Hadoop Common
          Issue Type: Task
            Reporter: Hongyu Cai


I have run a hadoop job and set multiple reducers in the reduce phase, then I have customize a counter to sum the results of multiple reducers. However, the data type of the result in each reducer is double, while the increment method of conuter only supports the long data type. If the conversion from double to long is forced, the precision will be lost. How can I solve this problem?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org