I think you are using Java 8, so you are hitting - https://issues.apache.org/jira/browse/SLIDER-878
We are working on it. Meanwhile you can use Java 7 and the cmd will work. You can also try to hit the AM URL and fetch the exports. It should be something like - http://<host>:<port>/ws/v1/slider/publisher/slider/servers The Application Master link should be available from RM UI page as well - http://<host>:8088/cluster -Gour On 5/19/15, 11:02 AM, "Timothy Potter" <[email protected]> wrote: >I get this: > >[~/dev/lw/slider/slider-0.72.0-incubating-SNAPSHOT]$ bin/slider >registry --name solr --getexp Servers --manager localhost:8032 >2015-05-19 12:02:07,841 [main] INFO client.RMProxy - Connecting to >ResourceManager at localhost/127.0.0.1:8032 >Exception: java.lang.IllegalStateException: connect in progress >2015-05-19 12:02:09,407 [main] ERROR main.ServiceLauncher - Exception: >java.lang.IllegalStateException: connect in progress >com.sun.jersey.api.client.ClientHandlerException: >java.lang.IllegalStateException: connect in progress > at >com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLC >onnectionClientHandler.java:149) > at com.sun.jersey.api.client.Client.handle(Client.java:648) > at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670) > at com.sun.jersey.api.client.WebResource.get(WebResource.java:191) > at >org.apache.slider.core.registry.retrieve.RegistryRetriever.getExports(Regi >stryRetriever.java:137) > at >org.apache.slider.client.SliderClient.actionRegistryGetExport(SliderClient >.java:3630) > at >org.apache.slider.client.SliderClient.actionRegistry(SliderClient.java:310 >8) > at org.apache.slider.client.SliderClient.exec(SliderClient.java:472) > at >org.apache.slider.client.SliderClient.runService(SliderClient.java:374) > at >org.apache.slider.core.main.ServiceLauncher.launchService(ServiceLauncher. >java:188) > at >org.apache.slider.core.main.ServiceLauncher.launchServiceRobustly(ServiceL >auncher.java:475) > at >org.apache.slider.core.main.ServiceLauncher.launchServiceAndExit(ServiceLa >uncher.java:403) > at >org.apache.slider.core.main.ServiceLauncher.serviceMain(ServiceLauncher.ja >va:630) > at org.apache.slider.Slider.main(Slider.java:49) >Caused by: java.lang.IllegalStateException: connect in progress > at >sun.net.www.protocol.http.HttpURLConnection.setRequestMethod(HttpURLConnec >tion.java:515) > at >com.sun.jersey.client.urlconnection.URLConnectionClientHandler.setRequestM >ethodUsingWorkaroundForJREBug(URLConnectionClientHandler.java:259) > at >com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URL >ConnectionClientHandler.java:191) > at >com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLC >onnectionClientHandler.java:147) > ... 13 more >2015-05-19 12:02:09,410 [main] INFO util.ExitUtil - Exiting with status >56 > >On Tue, May 19, 2015 at 11:23 AM, Gour Saha <[email protected]> wrote: >> What is the exact command you ran? >> >> Can you try this - >> slider registry --name <app_name> --getexp servers >> >> -Gour >> >> On 5/19/15, 9:26 AM, "Timothy Potter" <[email protected]> wrote: >> >>>I should note this is with a 0.72.0 build >>> >>>On Tue, May 19, 2015 at 10:25 AM, Timothy Potter <[email protected]> >>>wrote: >>>> I have defined a simple export in metainfo.xml: >>>> >>>> <exportGroups> >>>> <exportGroup> >>>> <name>Servers</name> >>>> <exports> >>>> <export> >>>> <name>host_port</name> >>>> <value>http://${THIS_HOST}:${site.global.listen_port}/</value> >>>> </export> >>>> </exports> >>>> </exportGroup> >>>> </exportGroups> >>>> >>>> <components> >>>> <component> >>>> <name>SOLR</name> >>>> <category>SLAVE</category> >>>> <compExports>Servers-host_port</compExports> >>>> <commandScript> >>>> <script>scripts/solr_node.py</script> >>>> <scriptType>PYTHON</scriptType> >>>> </commandScript> >>>> </component> >>>> </components> >>>> >>>> The app deploys fine and my SOLR component is running ... but when I >>>> go to the exports endpoint, I don't see my host_port??? >>>> >>>> >>>>{"exports":{"servers":{"description":"Servers","updated":1432052275319, >>>>"u >>>>pdatedTime":"Tue >>>> May 19 10:17:55 MDT >>>> >>>>2015","entries":{},"empty":true},"container_log_dirs":{"description":"c >>>>on >>>>tainer_log_dirs","updated":1432052275319,"updatedTime":"Tue >>>> May 19 10:17:55 MDT >>>> >>>>2015","entries":{},"empty":true},"container_work_dirs":{"description":" >>>>co >>>>ntainer_work_dirs","updated":1432052275319,"updatedTime":"Tue >>>> May 19 10:17:55 MDT 2015","entries":{},"empty":true}}} >>>> >>>> Any ideas what I'm doing wrong here? >>
