Support Questions
Find answers, ask questions, and share your expertise

Not able to create jobhsitory server using curl command

New Contributor

Hi Team,

I am trying to move mapreduce history server to another instance using curl command .

curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d  '{ "Credential" : { "principal" : "<orincipal", "key" : "<keyadmin>", "type" : "persisted" } }' '{RequestInfo":{"context":"Install MapReduce "}, "Body":{"HostRoles":{"state":"INSTALLED"}}}' 'http://node1:8080/api/v1/clusters/<clustername>/services/MAPREDUCE2'.


Unfortunately I am getting below error::

curl: (3) [globbing] nested braces not supported at pos 16

HTTP/1.1 400 Bad Request

X-Frame-Options: DENY

X-XSS-Protection: 1; mode=block

X-Content-Type-Options: nosniff

Cache-Control: no-store

Pragma: no-cache

Set-Cookie: AMBARISESSIONID=1djqii0d05hby3zpi0xa3v9l8;Path=/;HttpOnly

Expires: Thu, 01 Jan 1970 00:00:00 GMT

User: admin

Content-Type: text/plain

Content-Length: 195



  "status" : 400,

  "message" : "The properties [Credential/key, Credential/type, Credential/principal] specified in the request or predicate are not supported for the resource type Service."


Where  I am going wrong .

Apacahe ambari -


New Contributor
  • Since we added components for 2 hosts i was geting this error
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.