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

Billie Rinaldi commented on YARN-9152:
--------------------------------------

It looks like the services were empty because there was an admin user check. 
Aux service name, version, and start time could be viewed by non-admin users, 
so I have attached a patch that removes that check. I also noticed an issue 
with json serialization for the auxiliaryservices endpoint, so I fixed that as 
well.

> Auxiliary service REST API query does not return running services
> -----------------------------------------------------------------
>
>                 Key: YARN-9152
>                 URL: https://issues.apache.org/jira/browse/YARN-9152
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Eric Yang
>            Assignee: Billie Rinaldi
>            Priority: Major
>         Attachments: YARN-9152.1.patch
>
>
> Auxiliary service is configured with:
> {code}
> {
>   "services": [
>     {
>       "name": "mapreduce_shuffle",
>       "version": "2",
>       "configuration": {
>         "properties": {
>           "class.name": "org.apache.hadoop.mapred.ShuffleHandler",
>           "mapreduce.shuffle.transfer.buffer.size": "102400",
>           "mapreduce.shuffle.port": "13563"
>         }
>       }
>     }
>   ]
> }
> {code}
> Node manager log shows the service is registered:
> {code}
> 2018-12-19 22:38:57,466 INFO 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices: 
> Reading auxiliary services manifest hdfs:/tmp/aux.json
> 2018-12-19 22:38:57,827 INFO 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices: 
> Initialized auxiliary service mapreduce_shuffle
> 2018-12-19 22:38:57,828 INFO 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices: 
> Adding auxiliary service mapreduce_shuffle version 2
> {code}
> REST API query shows:
> {code}
> $ curl --negotiate -u :  
> http://eyang-3.openstacklocal:8042/ws/v1/node/auxiliaryservices
> {"services":{}}
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to