You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2014/11/03 02:46:33 UTC

[jira] [Created] (SLIDER-606) Agent is not able to communicate with AppMaster under some scenarios

Sumit Mohanty created SLIDER-606:
------------------------------------

             Summary: Agent is not able to communicate with AppMaster under some scenarios
                 Key: SLIDER-606
                 URL: https://issues.apache.org/jira/browse/SLIDER-606
             Project: Slider
          Issue Type: Bug
          Components: agent, appmaster
    Affects Versions: Slider 0.50
            Reporter: Sumit Mohanty
            Assignee: Sumit Mohanty
            Priority: Critical
             Fix For: Slider 0.60


When running memcached application, noticed that the agent is not able to find the address of the AppMaster.

Data from registry:
{noformat}
  "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"
    } ]
  } ],
{noformat}

But the agent lookup keys seem to be missing "classpath:" in the beginning.

{code}
        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]
{code}



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