You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "jun aoki (JIRA)" <ji...@apache.org> on 2014/11/25 02:09:12 UTC

[jira] [Created] (AMBARI-8437) clusters API (POST call) with hostmapping file fails with a 500 error.

jun aoki created AMBARI-8437:
--------------------------------

             Summary: clusters API (POST call) with hostmapping file fails with a 500 error.
                 Key: AMBARI-8437
                 URL: https://issues.apache.org/jira/browse/AMBARI-8437
             Project: Ambari
          Issue Type: Bug
            Reporter: jun aoki


I'm building trunk and found an API error.
When deploying a HDP 2.1 single node cluster from blueprint APIs, 

{code}
-bash-4.1# curl -X POST -D - -d @/tmp/ambari-build-docker/blueprints/single-node-HDP-2.1-blueprint1.json http://localhost:8080/api/v1/blueprints/myblueprint1 --header 'Authorization:Basic YWRtaW46YWRtaW4=' --header 'X-Requested-By: PIVOTAL'
HTTP/1.1 100 Continue

HTTP/1.1 201 Created
Set-Cookie: AMBARISESSIONID=j9r0w82tsnc3a3frr46blrtt;Path=/
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(7.6.7.v20120910)

-bash-4.1# curl -X POST -D - -d @/tmp/ambari-build-docker/blueprints/single-node-hostmapping1.json http://localhost:8080/api/v1/clusters/mycluster1 --header 'Authorization:Basic YWRtaW46YWRtaW4=' --header 'X-Requested-By: PIVOTAL'

HTTP/1.1 500 org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper cannot be cast to org.apache.ambari.server.controller.internal.ServiceResourceProvider
Set-Cookie: AMBARISESSIONID=1848epkerih6w18nonimtuaizx;Path=/
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 221
Server: Jetty(7.6.7.v20120910)

{
  "status": 500,
  "message": "org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper cannot be cast to org.apache.ambari.server.controller.internal.ServiceResourceProvider"
}
{code}

Note: When deploying the HDP 2.1 through UI with HDFS, YARN+MapReduce2, Ganglia, Zookeeper, there is no problem.

This is a single node environment.
The blueprint and hostmapping json files used here are 
https://github.com/apache/ambari/blob/trunk/dev-support/docker/docker/blueprints/single-node-HDP-2.1-blueprint1.json

https://github.com/apache/ambari/blob/trunk/dev-support/docker/docker/blueprints/single-node-hostmapping1.json

And please note they worked in the previous release.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)