Moving historyserver to another instance using curl command

0 votes
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
Nov 9, 2020 in Big Data Hadoop by Shilpa S
• 450 points
788 views

1 answer to this question.

0 votes

Hi@Shilpa,

You have double quotes inside a single quote. I think this is the issue. Try to correct the syntax. Use single quotes inside double-quotes.

answered Nov 9, 2020 by MD
• 95,460 points
I dint understand sry

"{ 'Credential' : { 'principal' : 'orincipal', 'key' : '', 'type' : 'persisted' } " still it dint wrk
Hi@Shilpa,

Check your command. You have double quotes inside a single quote.

 '{ "Credential" : { "principal" : "<orincipal", "key" : "<keyadmin>", "type" : "persisted" } }' '{RequestInfo":{"context":"Install MapReduce "}, "Body":{"HostRoles":{"state":"INSTALLED"}}}'
THANKS .

But still same issue "{ "Credential" : { "principal" : "", "key" : "", "type" : "temporary" } }' '{"RequestInfo":{"context":"Install MapReduce "}, "Body":{"HostRoles":{"state":"INSTALLED"}}}'"

But I could install MR histry server without proving credential ,Its sounds strange .Followed this doc "https://cwiki.apache.org/confluence/display/AMBARI/Move+Mapreduce2+History+Server"
Hi@Shilpa,

Can you share your modified command?

Related Questions In Big Data Hadoop

0 votes
1 answer

Moving data to hdfs using copyFromLocal command

Actually dfs.data.dir and dfs.name.dir have to point ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
10,142 views
0 votes
2 answers

How to see MySql service is running or not using linux command?

Hi, You can simply run the following commands ...READ MORE

answered Jan 21, 2020 in Big Data Hadoop by anonymous
2,245 views
0 votes
1 answer

How to configure ulimit for Hbase using command line?

Hi, Increasing the file handles for the user ...READ MORE

answered May 29, 2019 in Big Data Hadoop by Gitika
• 65,770 points
1,020 views
0 votes
1 answer

How to merge two consecutive regions using command line in HBase?

Hey, The Master and RegionServer both participate in ...READ MORE

answered May 29, 2019 in Big Data Hadoop by Gitika
• 65,770 points
3,188 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
11,015 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,527 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,736 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
4,605 views
0 votes
1 answer

Map reduce history moving instance using curl .

Hi@Shilpa, First thing, you will lose your metadata. ...READ MORE

answered Nov 9, 2020 in Big Data Hadoop by MD
• 95,460 points
788 views
0 votes
1 answer

How to see the report of Hadoop Cluster from command line?

Hi@akhtar, You can see the report of Hadoop Cluster ...READ MORE

answered Sep 25, 2020 in Big Data Hadoop by MD
• 95,460 points
3,249 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP