[ https://issues.apache.org/jira/browse/SLIDER-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035079#comment-15035079 ]
Gour Saha commented on SLIDER-1008: ----------------------------------- Have you looked at export groups in metainfo.xml? Here is an example file https://github.com/apache/incubator-slider/blob/develop/app-packages/hbase/metainfo.xml where an export group *QuickLinks* is defined. Once the app is running the information can be retrieved using the cmd - {code}slider registry --name <app_name> --getconf quicklinks{code} An even simpler example is *Servers* export group in https://github.com/apache/incubator-slider/blob/develop/app-packages/memcached/metainfo.xml. > Expose Endpoint of App Component for users to visit > --------------------------------------------------- > > Key: SLIDER-1008 > URL: https://issues.apache.org/jira/browse/SLIDER-1008 > Project: Slider > Issue Type: Task > Components: appmaster, registry > Affects Versions: Slider 0.81 > Reporter: fengyongshe > > After creating Apps,containers are distributed on arbitrary hosts ,also > random IPC port。how can user visit the app ? One way is to get endpoint by > manual (eg:netstat -anp|grep {pid}),the way is awful。 > There is the need to expose useful endpoints of App to zk registry path。 > eg: use slider to start a tomcat App,expose the ipc port: > [zk: localhost:2181(CONNECTED) 7] > > get/registry/users/root/services/org-apache-slider/tomcat/components/container-1448969780678-0005-01-000002 > { > "type" : "JSONServiceRecord", > "description" : "TOMCAT", > "external" : [ { > "api" : "server-xml.http.port", > "addressType" : "host/port", > "protocolType" : "tcp", > "addresses" : [ { > "port" : "39063", > "host" : "{host-name}" > } ] > } ], > "internal" : [ ], > "yarn:persistence" : "container", > "yarn:id" : "container-1448969780678-0005-01-000002" > } > User can get the host/port through zk. -- This message was sent by Atlassian JIRA (v6.3.4#6332)