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

ASF GitHub Bot commented on FLUME-3095:
---------------------------------------

GitHub user iaiengxia opened a pull request:

    https://github.com/apache/flume/pull/134

    add captity unit

    FLUME-3095
    In the configuration file, the capacity and time-related configuration can 
not set the unit, only the default unit, the default unit of capacity is byte, 
the default unit of time is milliseconds, so need to convert (for example, 2g 
converted to 2147483648), so not It is easy to configure the attribute is not 
easy to read again, so prepare the capacity type configuration new unit: g / m 
/ k / b (no unit defaults to byte), the time type configuration new unit: h / m 
/ s / ms ( No unit defaults to ms).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/iaiengxia/flume unit

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flume/pull/134.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #134
    
----
commit 6d74a83d94a626f3f003dc095c08ca710591f3da
Author: xls <iai...@163.com>
Date:   2017-05-22T12:21:07Z

    add captity unit

----


> Add units for time and capacity-related configurations
> ------------------------------------------------------
>
>                 Key: FLUME-3095
>                 URL: https://issues.apache.org/jira/browse/FLUME-3095
>             Project: Flume
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.0
>            Reporter: Lisheng Xia
>
> In the configuration file, the capacity and time-related configuration can 
> not set the unit, only the default unit, the default unit of capacity is 
> byte, the default unit of time is milliseconds, so need to convert (for 
> example, 2g converted to 2147483648), so not It is easy to configure the 
> attribute is not easy to read again, so prepare the capacity type 
> configuration new unit: g / m / k / b (no unit defaults to byte), the time 
> type configuration new unit: h / m / s / ms ( No unit defaults to ms).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to