You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Ashwin Shankar <as...@gmail.com> on 2014/04/15 02:33:24 UTC

Setting debug log level for individual daemons

Hi,
How do we set log level to debug for lets say only Resource manager
and not the other hadoop daemons ?

-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Add -Dhadoop.root.logger=DEBUG to Something like
HADOOP_resourcemanager_opts in yarn-env.sh

On Tuesday, April 15, 2014, Ashwin Shankar <as...@gmail.com>
wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>

-- 
Regards,
*Stanley Shi,*

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Add -Dhadoop.root.logger=DEBUG to Something like
HADOOP_resourcemanager_opts in yarn-env.sh

On Tuesday, April 15, 2014, Ashwin Shankar <as...@gmail.com>
wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>

-- 
Regards,
*Stanley Shi,*

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Yes, thank you Stanley !

Ashwin


On Tue, Apr 15, 2014 at 8:01 PM, Stanley Shi <ss...@gopivotal.com> wrote:

> Is this what you are looking for?
>
> http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog
>
> Regards,
> *Stanley Shi,*
>
>
>
> On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Thanks Gordon and Stanley, but this would require us to bounce the
>> process.
>> Is there a way to change log levels without bouncing the process ?
>>
>>
>>
>> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>>
>>> Put the following line in the log4j setting file.
>>>
>>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>>
>>>
>>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>>> ashwinshankar77@gmail.com> wrote:
>>>
>>>> Hi,
>>>> How do we set log level to debug for lets say only Resource manager
>>>> and not the other hadoop daemons ?
>>>>
>>>> --
>>>> Thanks,
>>>> Ashwin
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards
>>> Gordon Wang
>>>
>>
>>
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>


-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Yes, thank you Stanley !

Ashwin


On Tue, Apr 15, 2014 at 8:01 PM, Stanley Shi <ss...@gopivotal.com> wrote:

> Is this what you are looking for?
>
> http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog
>
> Regards,
> *Stanley Shi,*
>
>
>
> On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Thanks Gordon and Stanley, but this would require us to bounce the
>> process.
>> Is there a way to change log levels without bouncing the process ?
>>
>>
>>
>> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>>
>>> Put the following line in the log4j setting file.
>>>
>>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>>
>>>
>>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>>> ashwinshankar77@gmail.com> wrote:
>>>
>>>> Hi,
>>>> How do we set log level to debug for lets say only Resource manager
>>>> and not the other hadoop daemons ?
>>>>
>>>> --
>>>> Thanks,
>>>> Ashwin
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards
>>> Gordon Wang
>>>
>>
>>
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>


-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Yes, thank you Stanley !

Ashwin


On Tue, Apr 15, 2014 at 8:01 PM, Stanley Shi <ss...@gopivotal.com> wrote:

> Is this what you are looking for?
>
> http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog
>
> Regards,
> *Stanley Shi,*
>
>
>
> On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Thanks Gordon and Stanley, but this would require us to bounce the
>> process.
>> Is there a way to change log levels without bouncing the process ?
>>
>>
>>
>> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>>
>>> Put the following line in the log4j setting file.
>>>
>>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>>
>>>
>>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>>> ashwinshankar77@gmail.com> wrote:
>>>
>>>> Hi,
>>>> How do we set log level to debug for lets say only Resource manager
>>>> and not the other hadoop daemons ?
>>>>
>>>> --
>>>> Thanks,
>>>> Ashwin
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards
>>> Gordon Wang
>>>
>>
>>
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>


-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Yes, thank you Stanley !

Ashwin


On Tue, Apr 15, 2014 at 8:01 PM, Stanley Shi <ss...@gopivotal.com> wrote:

> Is this what you are looking for?
>
> http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog
>
> Regards,
> *Stanley Shi,*
>
>
>
> On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Thanks Gordon and Stanley, but this would require us to bounce the
>> process.
>> Is there a way to change log levels without bouncing the process ?
>>
>>
>>
>> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>>
>>> Put the following line in the log4j setting file.
>>>
>>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>>
>>>
>>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>>> ashwinshankar77@gmail.com> wrote:
>>>
>>>> Hi,
>>>> How do we set log level to debug for lets say only Resource manager
>>>> and not the other hadoop daemons ?
>>>>
>>>> --
>>>> Thanks,
>>>> Ashwin
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards
>>> Gordon Wang
>>>
>>
>>
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>


-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Is this what you are looking for?
http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog

Regards,
*Stanley Shi,*



On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Thanks Gordon and Stanley, but this would require us to bounce the process.
> Is there a way to change log levels without bouncing the process ?
>
>
>
> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>
>> Put the following line in the log4j setting file.
>>
>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>
>>
>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>> ashwinshankar77@gmail.com> wrote:
>>
>>> Hi,
>>> How do we set log level to debug for lets say only Resource manager
>>> and not the other hadoop daemons ?
>>>
>>> --
>>> Thanks,
>>> Ashwin
>>>
>>>
>>>
>>
>>
>> --
>> Regards
>> Gordon Wang
>>
>
>
>
> --
> Thanks,
> Ashwin
>
>
>

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Is this what you are looking for?
http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog

Regards,
*Stanley Shi,*



On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Thanks Gordon and Stanley, but this would require us to bounce the process.
> Is there a way to change log levels without bouncing the process ?
>
>
>
> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>
>> Put the following line in the log4j setting file.
>>
>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>
>>
>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>> ashwinshankar77@gmail.com> wrote:
>>
>>> Hi,
>>> How do we set log level to debug for lets say only Resource manager
>>> and not the other hadoop daemons ?
>>>
>>> --
>>> Thanks,
>>> Ashwin
>>>
>>>
>>>
>>
>>
>> --
>> Regards
>> Gordon Wang
>>
>
>
>
> --
> Thanks,
> Ashwin
>
>
>

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Is this what you are looking for?
http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog

Regards,
*Stanley Shi,*



On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Thanks Gordon and Stanley, but this would require us to bounce the process.
> Is there a way to change log levels without bouncing the process ?
>
>
>
> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>
>> Put the following line in the log4j setting file.
>>
>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>
>>
>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>> ashwinshankar77@gmail.com> wrote:
>>
>>> Hi,
>>> How do we set log level to debug for lets say only Resource manager
>>> and not the other hadoop daemons ?
>>>
>>> --
>>> Thanks,
>>> Ashwin
>>>
>>>
>>>
>>
>>
>> --
>> Regards
>> Gordon Wang
>>
>
>
>
> --
> Thanks,
> Ashwin
>
>
>

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Is this what you are looking for?
http://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog

Regards,
*Stanley Shi,*



On Wed, Apr 16, 2014 at 2:06 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Thanks Gordon and Stanley, but this would require us to bounce the process.
> Is there a way to change log levels without bouncing the process ?
>
>
>
> On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:
>
>> Put the following line in the log4j setting file.
>>
>> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>>
>>
>> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <
>> ashwinshankar77@gmail.com> wrote:
>>
>>> Hi,
>>> How do we set log level to debug for lets say only Resource manager
>>> and not the other hadoop daemons ?
>>>
>>> --
>>> Thanks,
>>> Ashwin
>>>
>>>
>>>
>>
>>
>> --
>> Regards
>> Gordon Wang
>>
>
>
>
> --
> Thanks,
> Ashwin
>
>
>

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Thanks Gordon and Stanley, but this would require us to bounce the process.
Is there a way to change log levels without bouncing the process ?



On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:

> Put the following line in the log4j setting file.
>
> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>
>
> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Hi,
>> How do we set log level to debug for lets say only Resource manager
>> and not the other hadoop daemons ?
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>
>
> --
> Regards
> Gordon Wang
>



-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Thanks Gordon and Stanley, but this would require us to bounce the process.
Is there a way to change log levels without bouncing the process ?



On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:

> Put the following line in the log4j setting file.
>
> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>
>
> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Hi,
>> How do we set log level to debug for lets say only Resource manager
>> and not the other hadoop daemons ?
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>
>
> --
> Regards
> Gordon Wang
>



-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Thanks Gordon and Stanley, but this would require us to bounce the process.
Is there a way to change log levels without bouncing the process ?



On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:

> Put the following line in the log4j setting file.
>
> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>
>
> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Hi,
>> How do we set log level to debug for lets say only Resource manager
>> and not the other hadoop daemons ?
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>
>
> --
> Regards
> Gordon Wang
>



-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Ashwin Shankar <as...@gmail.com>.
Thanks Gordon and Stanley, but this would require us to bounce the process.
Is there a way to change log levels without bouncing the process ?



On Tue, Apr 15, 2014 at 3:23 AM, Gordon Wang <gw...@gopivotal.com> wrote:

> Put the following line in the log4j setting file.
>
> log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console
>
>
> On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar <ashwinshankar77@gmail.com
> > wrote:
>
>> Hi,
>> How do we set log level to debug for lets say only Resource manager
>> and not the other hadoop daemons ?
>>
>> --
>> Thanks,
>> Ashwin
>>
>>
>>
>
>
> --
> Regards
> Gordon Wang
>



-- 
Thanks,
Ashwin

Re: Setting debug log level for individual daemons

Posted by Gordon Wang <gw...@gopivotal.com>.
Put the following line in the log4j setting file.

log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console


On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>


-- 
Regards
Gordon Wang

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Add -Dhadoop.root.logger=DEBUG to Something like
HADOOP_resourcemanager_opts in yarn-env.sh

On Tuesday, April 15, 2014, Ashwin Shankar <as...@gmail.com>
wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>

-- 
Regards,
*Stanley Shi,*

Re: Setting debug log level for individual daemons

Posted by Gordon Wang <gw...@gopivotal.com>.
Put the following line in the log4j setting file.

log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console


On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>


-- 
Regards
Gordon Wang

Re: Setting debug log level for individual daemons

Posted by Gordon Wang <gw...@gopivotal.com>.
Put the following line in the log4j setting file.

log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console


On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>


-- 
Regards
Gordon Wang

Re: Setting debug log level for individual daemons

Posted by Stanley Shi <ss...@gopivotal.com>.
Add -Dhadoop.root.logger=DEBUG to Something like
HADOOP_resourcemanager_opts in yarn-env.sh

On Tuesday, April 15, 2014, Ashwin Shankar <as...@gmail.com>
wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>

-- 
Regards,
*Stanley Shi,*

Re: Setting debug log level for individual daemons

Posted by Gordon Wang <gw...@gopivotal.com>.
Put the following line in the log4j setting file.

log4j.logger.org.apache.hadoop.yarn.server.resourcemanager=DEBUG,console


On Tue, Apr 15, 2014 at 8:33 AM, Ashwin Shankar
<as...@gmail.com>wrote:

> Hi,
> How do we set log level to debug for lets say only Resource manager
> and not the other hadoop daemons ?
>
> --
> Thanks,
> Ashwin
>
>
>


-- 
Regards
Gordon Wang