Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-606

Agent is not able to communicate with AppMaster under some scenarios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Slider 0.50
    • Slider 0.60
    • agent, appmaster
    • 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]
      

      Attachments

        Activity

          People

            sumitmohanty Sumit Mohanty
            sumitmohanty Sumit Mohanty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: