Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1491 | 06-15-2020 05:23 AM | |
9634 | 01-30-2020 08:04 PM | |
1639 | 07-07-2019 09:06 PM | |
6823 | 01-27-2018 10:17 PM | |
3830 | 12-31-2017 10:12 PM |
08-09-2017
09:08 AM
ok thx , what about the second part - curl -H "X-Requested-By: ambari" --data @ -X POST -u admin:admin http://130.14.6.28:8080/api/v1/blueprints/HDP01 -d @$path/blueprint.json
... View more
08-09-2017
08:37 AM
hi all we have ambari cluster Version 2.5.0.3 , while all clients machines are Linux redhat first I generated the json file to my Linux machine as the following: ( on ambari server machine ) curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://130.14.6.28:8080/api/v1/clusters/HDP01\?format\=blueprint > blueprint.json then I update the blueprint.json file with some changes about the parameters and their values finally my target is to upload the new blueprint.json to ambari cluster in order to take affect ! path=/root curl -H "X-Requested-By: ambari" --data @ -X POST -u admin:admin http://130.14.6.28:8080/api/v1/blueprints/HDP01 -d @$path/blueprint.json but I get the following errors ( seems because wrong syntax ) Warning: Couldn't read data from file "", this makes an empty POST.
{
"status" : 400,
"message" : "Invalid Request: Malformed Request Body. An exception occurred parsing the request body: Unexpected character ('&' (code 38)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: java.io.StringReader@4a3484a6; line: 1, column: 3]" please advice what is wrong in my syntax ? and what is the right syntax in order to upload the new update blueprint.json file
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
08-08-2017
03:47 PM
@Geoffrey thank you so much , I will learn this , the second option to change the values of the parameters by using API , each service has the relevant parameters , for example lets take the YARN service and the relevant parameters and values - is it possible by API command to change the parameters values for example - YARN service ? , can you please give me example for that? , I searched in google but not see relevant ideas about this -:(
... View more
08-08-2017
01:05 PM
@Geoffrey Shelton Okot thx for the examples , but if we want to change the values , for example - in ambari cluster we click HDFS service then we click on config , and then we get list of parameters , and their values , so I just thinking if API can change the value that belong to specific parameter ?
... View more
08-08-2017
12:30 PM
so according to your info upload new update json to existing ambari cluster isn't real choice , so let continue to other option , is it possible by API command to change the parameters values for the services ? , can you please give me example for that?
... View more
08-08-2017
12:06 PM
we have many Ambari LAB clusters - Apache Ambari Version 2.5.0.3 my target is to find a way to update the values of services , on all the Ambari clusters , by automate the process what we do until now , is take each ambari cluster and
change the services values - but this take a lot of time so if we have diff 25 ambari LAB clusters , then we need
access each ambari cluster and change the values , this is very exhausting in
case we have alot of values to change but we have a new idea to automate the process what we thinking is to generate the blueprint.json file as
the following: curl -H "X-Requested-By: ambari" -X GET -u
admin:admin
http://{ambari_host}:8080/api/v1/clusters/{Cluster_name}\?format\=blueprint
> blueprint.json then update/change the values from the json file and finally upload the json file on all clusters the big question is: how to update the new json update file on current ambari cluster ?
is it possible scenario ?
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
08-08-2017
11:20 AM
@Geoffrey Shelton Okot , ok , I also ask Doroszlai, Attila about "update the ambari cluster with this new update json" is it possible I will happy to know your opinion about this ?
... View more
08-08-2017
11:11 AM
@Doroszlai, Attila I have anew question , lets say I successfully generate a new json file , and on this json file I change few parameters ( values ) , then I want to update the ambari cluster with this new update json file , is it possible ?
... View more
08-08-2017
10:57 AM
@Geoffrey Shelton Okot nice the syntax generate the .json file , so lets say we want to work on the json file in order to change the values from the parameters , do you know on existing tool/script that know how to replace the current values in the json file with other new values ?
... View more
08-08-2017
10:50 AM
@Geoffrey Shelton Okot , I will run this syntax in the next 15 min
... View more
- « Previous
- Next »