Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Slider 0.50
-
None
-
Slider October #2
Description
When running memcached application, noticed that the agent is not able to find the address of the AppMaster.
Data from registry:
"internal" : [ { "api" : "classpath:org.apache.slider.agents.secure", "addressType" : "uri", "protocolType" : "REST", "addresses" : [ { "uri" : "https://c6403.ambari.apache.org:44863/ws/v1/slider/agents" } ] }, { "api" : "classpath:org.apache.slider.agents.oneway", "addressType" : "uri", "protocolType" : "REST", "addresses" : [ { "uri" : "https://c6403.ambari.apache.org:56339/ws/v1/slider/agents" } ] } ],
But the agent lookup keys seem to be missing "classpath:" in the beginning.
if internal["api"] == "org.apache.slider.agents.secure": address0 = internal["addresses"][0] amUrl = address0["uri"] amHost = amUrl.split("/")[2].split(":")[0] amSecuredPort = amUrl.split(":")[2].split("/")[0] if internal["api"] == "org.apache.slider.agents.oneway": address0 = internal["addresses"][0] amUnsecureUrl = address0["uri"] amHost = amUnsecureUrl.split("/")[2].split(":")[0] amUnsecuredPort = amUnsecureUrl.split(":")[2].split("/")[0]