Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-666 Ambari architectural changes
  3. AMBARI-1052

UnsupportedPropertyException thrown from update

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • None
    • None

    Description

      API with PUT method:

      api/v1/clusters/<clusterName>/host_components?HostRoles/host_name=<hostName>

      data = {config: {'global': 'version1', 'core-site': 'version1', 'mapred-site': 'version1'}};

      Basically, I want to apply configurations on host resource.

      This gives me an exception right now (copied from firebug):

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;"/>
      <title>Error 500 Update of resource failed: org.apache.ambari.server.controller.spi.UnsupportedPropertyException: The properties [PropertyId[config,core-site], PropertyId[config,global], PropertyId[config,mapred-site]] specified in the request or predicate are not supported for the resource type HostComponent.</title>
      </head>
      <body>
      <h2>HTTP ERROR: 500</h2>
      <p>Problem accessing /api/v1/clusters/mycluster/host_components. Reason:
      <pre>    Update of resource failed: org.apache.ambari.server.controller.spi.UnsupportedPropertyException: The properties [PropertyId[config,core-site], PropertyId[config,global], PropertyId[config,mapred-site]] specified in the request or predicate are not supported for the resource type HostComponent.</pre></p>
      <hr /><i><small>Powered by Jetty://</small></i>
      

      Attachments

        1. AMBARI-1052.patch
          57 kB
          Tom Beerbower

        Activity

          People

            tbeerbower Tom Beerbower
            tbeerbower Tom Beerbower
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: