- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Not able to create jobhsitory server using curl command
- Labels:
-
Apache Ambari
-
Apache Hadoop
-
MapReduce
Created on ‎11-09-2020 03:03 AM - edited ‎11-09-2020 03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 -2.6.1.2
Created on ‎11-10-2020 05:07 AM - edited ‎11-10-2020 07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Since we added components for 2 hosts i was geting this error
