Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
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>