You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Kuhu Shukla (JIRA)" <ji...@apache.org> on 2018/05/03 02:07:00 UTC

[jira] [Commented] (TEZ-3918) Setting tez.task.log.level does not work

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

Kuhu Shukla commented on TEZ-3918:
----------------------------------

The following method call allows log level to be set for tasks to user specified value only if tez.root.logger is not set.

 
{code}
static void maybeAddDefaultLoggingJavaOpts(String logLevel, List<String> vargs) {
    Preconditions.checkNotNull(vargs);
    if (!vargs.isEmpty()) {
      for (String arg : vargs) {
        if (arg.contains(TezConstants.TEZ_ROOT_LOGGER_NAME)) {
          return;
        }
      }
    }
    TezClientUtils.addLog4jSystemProperties(logLevel, vargs);
  }
{code}
Which by default is set in tez-container-log4j.properties to "tez.root.logger=INFO,CLA" and doesnt allow DEBUG for task level to propagate as per current design. Need to make sure if we want this behavior.

> Setting tez.task.log.level does not work
> ----------------------------------------
>
>                 Key: TEZ-3918
>                 URL: https://issues.apache.org/jira/browse/TEZ-3918
>             Project: Apache Tez
>          Issue Type: Bug
>    Affects Versions: 0.9.1
>            Reporter: Kuhu Shukla
>            Assignee: Kuhu Shukla
>            Priority: Major
>
> Setting this as a -D property on cmd line does not take effect.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)