hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miklos Szegedi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-5575) Many classes use bare yarn. properties instead of the defined constants
Date Tue, 27 Sep 2016 03:01:20 GMT

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

Miklos Szegedi commented on YARN-5575:
--------------------------------------

TestTimelineAuthenticationFilterInitializer.java has a new issue. PREFIX already contains
http-authentication, so there will be an extra http-authentication in the configuration.
Example: yarn.timeline-service.*http-authentication.http-authentication*.proxyuser.foo.hosts
{code}
  public static final String PREFIX = "yarn.timeline-service.http-authentication.";
...
          // yarn.timeline-service.http-authentication.proxyuser prefix
          conf.set(PREFIX + "http-authentication.proxyuser.foo.hosts", "*");
          conf.set(PREFIX + "http-authentication.proxyuser.foo.users", "*");
          conf.set(PREFIX + "http-authentication.proxyuser.foo.groups", "*");
          break;
        case 2:
          // hadoop.proxyuser prefix has been overwritten by
          // yarn.timeline-service.http-authentication.proxyuser prefix
          conf.set("hadoop.proxyuser.foo.hosts", "bar");
          conf.set("hadoop.proxyuser.foo.users", "bar");
          conf.set("hadoop.proxyuser.foo.groups", "bar");
          conf.set(PREFIX + "http-authentication.proxyuser.foo.hosts", "*");
          conf.set(PREFIX + "http-authentication.proxyuser.foo.users", "*");
          conf.set(PREFIX + "http-authentication.proxyuser.foo.groups", "*");
          break;
{code}


> Many classes use bare yarn. properties instead of the defined constants
> -----------------------------------------------------------------------
>
>                 Key: YARN-5575
>                 URL: https://issues.apache.org/jira/browse/YARN-5575
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Daniel Templeton
>            Assignee: Daniel Templeton
>         Attachments: YARN-5575.001.patch
>
>
> MAPREDUCE-5870 introduced the following line:
> {code}
>       conf.setInt("yarn.cluster.max-application-priority", 10);
> {code}
> It should instead be:
> {code}
>       conf.setInt(YarnConfiguration.MAX_CLUSTER_LEVEL_APPLICATION_PRIORITY, 10);
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message