You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@chukwa.apache.org by Ying Tang <iv...@gmail.com> on 2011/03/23 09:36:15 UTC

The timezone in chukwa agent and collector

Do the chukwa agent and collector use the system time zone ?
What will happen if the agent  node and the collector node use different
time zone ?
And i want the agent and the collector  use the fixed time zone , do i have
to modify the code and recompile the source?

-- 
Best regards,

Ivy Tang

Re: The timezone in chukwa agent and collector

Posted by Eric Yang <ey...@yahoo-inc.com>.
Chukwa collector and agent don't support the concept of time zone.  Hence, it will be difficult to change this.  The only place that supports time zone is in the UI javascript code.  This design simplifies time zone problem to ensure the software works as intended regardless of time zone policy changes.

If you have strict requirement on the agent side to run on a system with non UTC time zone, then you will want to ensure that the time zone information is sent as part of the log file, and the demux parser handles time zone correctly.  Since chukwa collector is dedicated machine, there should be no issue to run the system in UTC time with the hadoop cluster.

Hope this helps.

Regards,
Eric

On 3/23/11 11:17 PM, "Ying Tang" <iv...@gmail.com> wrote:

Hi Eric,
But i need to fix the timezone in the chukwa ,because the chukwa will be running in different area .
So i wonder if there is a way to fix the time zone in the chukwa source code ?

On Thu, Mar 24, 2011 at 12:21 AM, Eric Yang <ey...@yahoo-inc.com> wrote:
Hi,

It is recommended to run both Agent and Collector in UTC timezone to avoid day light saving time shift.  It is probably less work to set the system timezone to UTC for Chukwa to work properly.
The same applies to hadoop cluster clock.

Regards,
Eric



On 3/23/11 1:36 AM, "Ying Tang" <ivytang0812@gmail.com <ht...@gmail.com> > wrote:

Do the chukwa agent and collector use the system time zone ?
What will happen if the agent  node and the collector node use different time zone ?
And i want the agent and the collector  use the fixed time zone , do i have to modify the code and recompile the source?



Re: The timezone in chukwa agent and collector

Posted by Ying Tang <iv...@gmail.com>.
Hi Eric,
But i need to fix the timezone in the chukwa ,because the chukwa will be
running in different area .
So i wonder if there is a way to fix the time zone in the chukwa source code
?

On Thu, Mar 24, 2011 at 12:21 AM, Eric Yang <ey...@yahoo-inc.com> wrote:

> Hi,
>
> It is recommended to run both Agent and Collector in UTC timezone to avoid
> day light saving time shift.  It is probably less work to set the system
> timezone to UTC for Chukwa to work properly.
> The same applies to hadoop cluster clock.
>
> Regards,
> Eric
>
>
>
> On 3/23/11 1:36 AM, "Ying Tang" <iv...@gmail.com> wrote:
>
>  Do the chukwa agent and collector use the system time zone ?
> What will happen if the agent  node and the collector node use different
> time zone ?
> And i want the agent and the collector  use the fixed time zone , do i have
> to modify the code and recompile the source?
>
>


-- 
Best regards,

Ivy Tang

Re: The timezone in chukwa agent and collector

Posted by Eric Yang <ey...@yahoo-inc.com>.
Hi,

It is recommended to run both Agent and Collector in UTC timezone to avoid day light saving time shift.  It is probably less work to set the system timezone to UTC for Chukwa to work properly.
The same applies to hadoop cluster clock.

Regards,
Eric


On 3/23/11 1:36 AM, "Ying Tang" <iv...@gmail.com> wrote:

Do the chukwa agent and collector use the system time zone ?
What will happen if the agent  node and the collector node use different time zone ?
And i want the agent and the collector  use the fixed time zone , do i have to modify the code and recompile the source?