<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ambari cluster + what is the right syntax in order to upload json file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208506#M66292</link>
    <description>&lt;P&gt;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'"&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 16:34:09 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-08-09T16:34:09Z</dc:date>
    <item>
      <title>ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208499#M66285</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;we have ambari cluster Version 2.5.0.3 , while all clients machines are Linux redhat&lt;/P&gt;&lt;P&gt;first I generated the json file to my Linux machine as the following: ( on ambari server machine )&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;        curl -H "X-Requested-By: ambari" -X GET -u admin:admin &lt;A href="http://130.14.6.28:8080/api/v1/clusters/HDP01\?format\=blueprint" target="_blank"&gt;http://130.14.6.28:8080/api/v1/clusters/HDP01\?format\=blueprint&lt;/A&gt; &amp;gt; blueprint.json&lt;/P&gt;&lt;P&gt;then I update the blueprint.json file with some changes about the parameters and their values &lt;/P&gt;&lt;P&gt;finally my target is to upload the new  blueprint.json to  ambari cluster in order to take affect !&lt;/P&gt;&lt;P&gt;path=/root&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;              curl -H "X-Requested-By: ambari" --data @ -X POST -u admin:admin &lt;A href="http://130.14.6.28:8080/api/v1/blueprints/HDP01" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints/HDP01&lt;/A&gt; -d @$path/blueprint.json &lt;/P&gt;&lt;P&gt;but I get the following errors ( seems because wrong syntax )&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;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 ('&amp;amp;' (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]"&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;please advice what is wrong in my syntax ? and what is the right syntax in order to upload the new update blueprint.json file &lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 15:37:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208499#M66285</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T15:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208500#M66286</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should not use the &amp;gt;  redirect operator to move the JSON response to a file ... Instead use the Curl  "-o /PATH/TO/file.json") to do the same .  Please try&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# curl  -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://130.14.6.28:8080/api/v1/clusters/HDP01?format=blueprint" target="_blank"&gt;http://130.14.6.28:8080/api/v1/clusters/HDP01?format=blueprint&lt;/A&gt; -o /tmp/HDP01_blueprint.json&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Still if you find any issue with the JSON data then please attach the edited JSON so that we can check the JSON characters are fine or not?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:05:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208500#M66286</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-09T16:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208501#M66287</link>
      <description>&lt;P&gt;ok thx , what about the second part -         curl -H "X-Requested-By: ambari" --data @ -X POST -u admin:admin &lt;A href="http://130.14.6.28:8080/api/v1/blueprints/HDP01" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints/HDP01&lt;/A&gt; -d @$path/blueprint.json&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:08:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208501#M66287</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T16:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208502#M66288</link>
      <description>&lt;P&gt;the json data is ok , the problem is about my syntax ( with curl .... )&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:09:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208502#M66288</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T16:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208503#M66289</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, in the POST you have twice  "--data"  and "-d" both are not needed together. So please try: &lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -d @$path/blueprint.json -X POST  &lt;A href="http://130.14.6.28:8080/api/v1/blueprints/HDP01" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints/HDP01&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X POST  &lt;A href="http://130.14.6.28:8080/api/v1/blueprints/HDP01" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints/HDP01&lt;/A&gt; -d @$path/blueprint.json &lt;/PRE&gt;&lt;P&gt;Here the&lt;STRONG&gt; "$path/blueprint.json"&lt;/STRONG&gt; needs to be replaced with the actual path like &lt;STRONG&gt; -d@/tmp/blueprint.json &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:18:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208503#M66289</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-09T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208504#M66290</link>
      <description>&lt;P&gt;thx for your answer , now I get - {
  "status" : 409,
  "message" : "Attempted to create a Blueprint which already exists, blueprint_name=HDP01"
}&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:20:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208504#M66290</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T16:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208505#M66291</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please change the blueprint name  to something else inside your blueprint.json file.&lt;/P&gt;&lt;P&gt;If you want to see the rpeviously registered blueorint names then you can use the following kind of API:&lt;/P&gt;&lt;PRE&gt;curl  -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://130.14.6.28:8080/api/v1/blueprints" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Blueprint name should be unique.&lt;/P&gt;&lt;P&gt;Else you can delete the Old blueprints from your ambari server using the name&amp;gt;&lt;/P&gt;&lt;PRE&gt;curl  -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://130.14.6.28:8080/api/v1/blueprints/HDP01" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints/HDP01&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:24:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208505#M66291</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-09T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208506#M66292</link>
      <description>&lt;P&gt;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'"&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:34:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208506#M66292</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T16:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208507#M66293</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;P&gt;It means either you are using some services  like Nifi/Oozie and few configurations are missing like "Schema_Registry", "MassFlowManager" ... etc.  So the blueprint registration is failing.&lt;/P&gt;&lt;P&gt;The other option will be to add the&lt;STRONG&gt; "?validate_topology=false" &lt;/STRONG&gt;parametere in the URL to tell ambari to not validate the blueprint so that later you can update it.&lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X POST  &lt;A href="http://130.14.6.28:8080/api/v1/blueprints/HDP01?validate_topology=false" target="_blank"&gt;http://130.14.6.28:8080/api/v1/blueprints/HDP01?validate_topology=false&lt;/A&gt; -d @$path/blueprint.json &lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:38:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208507#M66293</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-09T16:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208508#M66294</link>
      <description>&lt;P&gt;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 &lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:56:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208508#M66294</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T16:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208509#M66295</link>
      <description>&lt;P&gt;how it can be if we delete the blueprint.json and upload the new one but still ambari GUI show the old values ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 17:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208509#M66295</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-09T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208510#M66296</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As your original issue mentioned in this thread is resolved, Then we can mark this thread as "Accepted" (Answered) and continue on the other thread that you opened for the new issue.&lt;/P&gt;&lt;PRE&gt;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 ('&amp;amp;' (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]"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:08:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208510#M66296</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-10T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208511#M66297</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;@uri ben-ari&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/26229/uribarih.html"&gt;&lt;/A&gt;This thread have been going on endlessly, and with duplicates.. I provided you the curl step mentioned above. If an answer provided solved the initial issue please do raise another thread. As jay stated  you should mark the appropriate answer as "ACCEPTED" otherwise members will not attend to your questions in the future ,personally I have posted about 4 answers to your same thread .....&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 16:27:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208511#M66297</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-08-10T16:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: ambari cluster + what is the right syntax in order to upload json file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208512#M66298</link>
      <description>&lt;P&gt;dear &lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;  you right , but during all my process I noticed about little issues that need to resolved ,  I am new in hadoop world , but any way I choose to work with other approach in order to configure the ambari cluster -  see this &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:47:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-cluster-what-is-the-right-syntax-in-order-to-upload/m-p/208512#M66298</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-10T18:47:05Z</dc:date>
    </item>
  </channel>
</rss>

