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

Manoj Samel commented on SLIDER-1064:
-------------------------------------

Hi [~gsaha],

>From 
>https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/registry/yarn-registry.html,
>  one of the key use case of Yarn registry  is to publish the service 
>component endpoints and to keep these up to date when component restarts etc. 
>E.g. quoting from the link "Registration Use Cases 3. Component instances of a 
>service register themselves, publishing internal binding information, such as 
>JMX ports.". So the use case is valid.





> Component level export host:port info does not appears in ZK
> ------------------------------------------------------------
>
>                 Key: SLIDER-1064
>                 URL: https://issues.apache.org/jira/browse/SLIDER-1064
>             Project: Slider
>          Issue Type: Bug
>          Components: core, registry
>    Affects Versions: Slider 0.80
>            Reporter: Manoj Samel
>         Attachments: manoj_appConfig.json, manoj_metainfo.xml, 
> manoj_outputs.txt, manoj_resources.json
>
>
> Slider 0.80 with secured cluster. Registry is enabled *** without *** security
> Export is configured as follows
> 1. No application level export
> 2. Component level port allocated per container. In appConfig.json, *** 
> "global" *** section
>     "site.global.user1.http_port": "${user1.ALLOCATED_PORT}{PER_CONTAINER}",
> 3. Each component exports its own host/port (slider allocated). metainfo.xml
> {code:xml}
>           <components>
>             <component>
>                   <name>user1</name>
>                   <category>MASTER</category>
>                   <componentExports>
>                      <componentExport>
>                        <name>my_info</name>
>                        <value>${THIS_HOST}:${user1.http_port}</value>
>                     </componentExport>
>                   </componentExports>
>                   <commandScript>
>                     <script>scripts/memcached.py</script>
>                     <scriptType>PYTHON</scriptType>
>                   </commandScript>
>                 </component>
> {code}
> At runtime, 
> in http://am-host:1025/ws/v1/slider/publisher/slider/componentinstancedata, 
> the host:port info can be seen as expected
> {"description":"ComponentInstanceData","updated":0,"entries":{"container_1452045276360_0005_01_000004.my_info":"host1:33786",
>  .... 
> However, when I look at ZK data,
> get 
> /registry/users/foo/services/org-apache-slider/<appname>/components/container-1452045276360-0005-01-000004,
>  I don't see the host:port info. It only shows
> {
>   "type" : "JSONServiceRecord",
>   "description" : "user1",
>   "external" : [ ],
>   "internal" : [ ],
>   "yarn:id" : "container-1452045276360-0005-01-000004",
>   "yarn:persistence" : "container"
> }



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

Reply via email to