You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jonathan Hung (JIRA)" <ji...@apache.org> on 2019/06/01 01:14:00 UTC

[jira] [Commented] (YARN-9593) Updating scheduler conf with comma in config value fails

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

Jonathan Hung commented on YARN-9593:
-------------------------------------

Thanks [~erwaman] for the report, this is a known issue, but confs of this variety can be changed via the REST API as well: [https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Scheduler_Configuration_Mutation_API]. 

I suppose it's possible to change the delimiter in the CLI. But {{,}} seems quite natural to me. Most confs don't require this either. What do you think?

> Updating scheduler conf with comma in config value fails
> --------------------------------------------------------
>
>                 Key: YARN-9593
>                 URL: https://issues.apache.org/jira/browse/YARN-9593
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.9.0, 3.0.0, 3.2.0, 3.1.2
>            Reporter: Anthony Hsu
>            Priority: Major
>
> For example:
> {code:java}
> $ yarn schedulerconf -update "root.gridops:acl_administer_queue=user1,user2 group1,group2"
> Specify configuration key value as confKey=confVal.{code}
> This fails because there is a comma in the config value and the SchedConfCLI splits on comma first, expecting each split to a k=v pair.
> {noformat}
> void globalUpdates(String args, SchedConfUpdateInfo updateInfo) {
>   if (args == null) {
>     return;
>   }
>   HashMap<String, String> globalUpdates = new HashMap<>();
>   for (String globalUpdate : args.split(",")) {
>     putKeyValuePair(globalUpdates, globalUpdate);
>   }
>   updateInfo.setGlobalParams(globalUpdates);
> }{noformat}
> Cc: [~jhung]



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

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