Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-beta1, 2.8.2, 3.1.0
    • None
    • None
    • Reviewed

    Description

      The existing host JSON file format doesn't have a top-level token.

        {"hostName": "host1"}
        {"hostName": "host2", "upgradeDomain": "ud0"}
        {"hostName": "host3", "adminState": "DECOMMISSIONED"}
        {"hostName": "host4", "upgradeDomain": "ud2", "adminState": "DECOMMISSIONED"}
        {"hostName": "host5", "port": 8090}
        {"hostName": "host6", "adminState": "IN_MAINTENANCE"}
        {"hostName": "host7", "adminState": "IN_MAINTENANCE", "maintenanceExpireTimeInMS": "112233"}
      

      Instead, to conform with the JSON standard it should be like

      [
        {"hostName": "host1"},
        {"hostName": "host2", "upgradeDomain": "ud0"},
        {"hostName": "host3", "adminState": "DECOMMISSIONED"},
        {"hostName": "host4", "upgradeDomain": "ud2", "adminState": "DECOMMISSIONED"},
        {"hostName": "host5", "port": 8090},
        {"hostName": "host6", "adminState": "IN_MAINTENANCE"},
        {"hostName": "host7", "adminState": "IN_MAINTENANCE", "maintenanceExpireTimeInMS": "112233"}
      ]
      

      Attachments

        1. HDFS-12473-branch-2.patch
          13 kB
          Ming Ma
        2. HDFS-12473-6.patch
          13 kB
          Ming Ma
        3. HDFS-12473-5.patch
          11 kB
          Ming Ma
        4. HDFS-12473-4.patch
          13 kB
          Ming Ma
        5. HDFS-12473-3.patch
          13 kB
          Ming Ma
        6. HDFS-12473-2.patch
          11 kB
          Ming Ma
        7. HDFS-12473.patch
          10 kB
          Ming Ma

        Activity

          People

            mingma Ming Ma
            mingma Ming Ma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: