OK. So was there a ‘-‘ or some other character in your component name? A ‘-‘ should work. The component names are currently expected to follow a naming convention that allows for DNS compatible names, and dashes are included in that character set. The fact that the endpoint did not appear may be related to some other issue. The AM logs may help here as well.
> On Jan 12, 2016, at 2:57 PM, Manoj Samel <[email protected]> wrote: > > Jon, > > I replaced <COMP-NAME> with actual component name. > > Thanks, > > > > On Tue, Jan 12, 2016 at 11:43 AM, Jon Maron <[email protected]> wrote: > >> Did you replace the actual comp name with <COMP-NAME>, or do you actually >> have the ‘<‘ and ‘>’ characters in the name? >> >>> On Jan 12, 2016, at 2:40 PM, Manoj Samel <[email protected]> >> wrote: >>> >>> Slider version 0.80 with secured cluster >>> >>> Use case is to create a component reflecting user name. It seems the only >>> valid character in component name besides [A-Z][a-z[0-9] is underscore >> '_'. >>> >>> Attempt to create a component with characters like dash '-' or many other >>> characters fail to bring up the component with error like below where >>> <COMP-NAME> >>> is the component name containing offending character >>> >>> INFO 2015-12-24 18:55:40,605 Controller.py:140 - Registering with the >>> server at >>> >> https://host1:41613/ws/v1/slider/agents/container_1450746204314_0043_01_000002___ >> <COMP-NAME>/register >>> with data '{"tags": "", "timestamp": 1450983340604, "expectedState": 0, >>> "responseId": -1, "actualState": 0, "logFolders": {}, "agentVersion": >> "1", >>> "allocatedPorts": {}, "appVersion": null, "publicHostname": "host2", >>> "label": "container_1450746204314_0043_01_000002___<COMP-NAME>"}' >>> INFO 2015-12-24 18:55:40,605 security.py:89 - SSL Connect being called.. >>> connecting to the server >>> INFO 2015-12-24 18:55:40,695 security.py:51 - SSL connection established. >>> Two-way SSL authentication is turned off on the server. >>> INFO 2015-12-24 18:55:40,745 Controller.py:183 - Unable to connect to: >>> >> https://host1:41613/ws/v1/slider/agents/container_1450746204314_0043_01_000002___ >> <COMP-NAME>/register >>> >>> Traceback (most recent call last): >>> File >>> >> "/data/yarn/local/usercache/foo/appcache/application_1450746204314_0043/filecache/10/slider-agent.tar.gz/slider-agent/agent/Controller.py", >>> line 142, in registerWithServer >>> regResp = json.loads(response) >>> File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads >>> return _default_decoder.decode(s) >>> File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode >>> obj, end = self.raw_decode(s, idx=_w(s, 0).end()) >>> File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode >>> raise ValueError("No JSON object could be decoded") >>> ValueError: No JSON object could be decoded >>> >>> >>> Any thoughts ? >>> >>> Thanks, >> >>
