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

Component level export host:port info does not appears in ZK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Slider 0.80
    • None
    • core, registry
    • None

    Description

      Slider 0.80 with secured cluster. Registry is enabled *** without *** security

      Export is configured as follows

      1. No application level export
      2. Component level port allocated per container. In appConfig.json, *** "global" *** section
      "site.global.user1.http_port": "${user1.ALLOCATED_PORT}

      {PER_CONTAINER}

      ",
      3. Each component exports its own host/port (slider allocated). metainfo.xml

                <components>
                  <component>
                        <name>user1</name>
                        <category>MASTER</category>
                        <componentExports>
                           <componentExport>
                             <name>my_info</name>
                             <value>${THIS_HOST}:${user1.http_port}</value>
                          </componentExport>
                        </componentExports>
                        <commandScript>
                          <script>scripts/memcached.py</script>
                          <scriptType>PYTHON</scriptType>
                        </commandScript>
                      </component>
      

      At runtime,

      in http://am-host:1025/ws/v1/slider/publisher/slider/componentinstancedata, the host:port info can be seen as expected
      {"description":"ComponentInstanceData","updated":0,"entries":{"container_1452045276360_0005_01_000004.my_info":"host1:33786", ....

      However, when I look at ZK data,
      get /registry/users/foo/services/org-apache-slider/<appname>/components/container-1452045276360-0005-01-000004, I don't see the host:port info. It only shows
      {
      "type" : "JSONServiceRecord",
      "description" : "user1",
      "external" : [ ],
      "internal" : [ ],
      "yarn:id" : "container-1452045276360-0005-01-000004",
      "yarn:persistence" : "container"
      }

      Attachments

        1. manoj_appConfig.json
          1 kB
          Manoj Samel
        2. manoj_metainfo.xml
          1 kB
          Manoj Samel
        3. manoj_outputs.txt
          0.9 kB
          Manoj Samel
        4. manoj_resources.json
          0.3 kB
          Manoj Samel

        Activity

          People

            Unassigned Unassigned
            manojsamel Manoj Samel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: