ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15588) Use ">>" instead of ">" to write ambari-metrics-monitor.out
Date Wed, 06 Apr 2016 14:18:25 GMT

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

Hudson commented on AMBARI-15588:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #4604 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4604/])
AMBARI-15588 Use ">>" instead of ">" to write (dsen: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=786d1ed6e927cc54fe50cc644ac494019ce00b05])
* ambari-metrics/ambari-metrics-host-monitoring/conf/unix/ambari-metrics-monitor


> Use ">>" instead of ">" to write ambari-metrics-monitor.out
> -----------------------------------------------------------
>
>                 Key: AMBARI-15588
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15588
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-metrics
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>              Labels: newbie
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-15588.01.patch
>
>
> If we want to rotate ambari-metrics-monitor.out by logrotate (using copytruncate option),
we need to use ">>" instead of ">" not to keep the file offset to write. If the offset
is kept, null characters are padded in the new file.
> {code:title=ambari-metrics-monitor}
>     nohup ${PYTHON} ${METRIC_MONITOR_PY_SCRIPT} "$@" > ${OUTFILE} 2>&1 &
> {code}
> should be 
> {code}
>     nohup ${PYTHON} ${METRIC_MONITOR_PY_SCRIPT} "$@" >> ${OUTFILE} 2>&1
&
> {code}



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

Mime
View raw message