Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1994 | 06-15-2020 05:23 AM | |
| 16387 | 01-30-2020 08:04 PM | |
| 2143 | 07-07-2019 09:06 PM | |
| 8327 | 01-27-2018 10:17 PM | |
| 4721 | 12-31-2017 10:12 PM |
08-09-2017
09:56 AM
ok now its work but little problem , before I upload the blueprint .json file I change the value - yarn.scheduler.minimum-allocation-mb" , and after I upload the json file and I access to ambari GUI I see the previos value - why ? , second I also restart the ambari-server but still have the old value
... View more
08-09-2017
09:34 AM
ok I removed the old json file and after I create the new one I get this - {
"status" : 400,
"message" : "Cluster Topology validation failed. Invalid service component count: [Schema_Registry(actual=3, required=5), MassFlowManager(actual=1, required=5), MassRepo(actual=1, required=5), Airflow(actual=1, required=5)]. To disable topology validation and create the blueprint, add the following to the end of the url: '?validate_topology=false'"
... View more
08-09-2017
09:20 AM
thx for your answer , now I get - {
"status" : 409,
"message" : "Attempted to create a Blueprint which already exists, blueprint_name=HDP01"
}
... View more
08-09-2017
09:09 AM
the json data is ok , the problem is about my syntax ( with curl .... )
... View more
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
- « Previous
- Next »