<?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: how to check that blueprint installed but not by curl API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186075#M73333</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can refer to Standard Postgres Documentation in order to know how to pass the password in Non Interactive mode.&lt;/P&gt;&lt;P&gt;Following doc shows a way:   &lt;A href="https://www.postgresql.org/docs/8.3/static/libpq-pgpass.html" target="_blank"&gt;https://www.postgresql.org/docs/8.3/static/libpq-pgpass.html&lt;/A&gt;&lt;/P&gt;&lt;P&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, 10 Jan 2018 21:27:43 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-01-10T21:27:43Z</dc:date>
    <item>
      <title>how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186069#M73327</link>
      <description>&lt;P&gt;how to check that blueprint installed on ambari-server machine but not by curl API&lt;/P&gt;&lt;P&gt;we need that because we need to identify from bash script that blueprint is installed or not &lt;/P&gt;&lt;P&gt;since ambari-server can be stop then we cant verify BY API&lt;/P&gt;&lt;P&gt;so please suggest if we can validate for sure blueprint installation by search some files or folder on the ambari-server machine&lt;/P&gt;&lt;P&gt;or other approtch ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:46:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186069#M73327</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-10T20:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186070#M73328</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ambari Blueprints can be registered to Ambari Server only when the Ambari Server is running. &lt;/P&gt;&lt;P&gt;So if there is any error while registering a  Blueprint to Ambari Server then we should see the error immediately.&lt;/P&gt;&lt;P&gt;There is no offline way to validate the Blueprint.  You will need to make ambari API call to list successfully registered Blueprints &lt;/P&gt;&lt;PRE&gt;# curl -H "X-Requested-By: ambari" -X GET -u admin:admin &lt;A href="http://c6401.ambari.apache.org:8080/api/v1/blueprints" target="_blank"&gt;http://c6401.ambari.apache.org:8080/api/v1/blueprints&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You can only enable or disable topology validation and register a blueprint:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;POST /api/v1/blueprints/:blueprintName?validate_topology=false&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference: &lt;/STRONG&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-RegisterblueprintwithAmbariServer" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-RegisterblueprintwithAmbariServer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:58:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186070#M73328</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-10T20:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186071#M73329</link>
      <description>&lt;P&gt;I see an other way to check if BP installed - by hdp-select &lt;/P&gt;&lt;P&gt;what you think? ( if BP not installed then this command will not be exsist ) &lt;/P&gt;&lt;PRE&gt; hdp-select | grep hadoop-client
hadoop-client - 2.6.0.3-8&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:07:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186071#M73329</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-10T21:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186072#M73330</link>
      <description>&lt;P&gt;if you not accept that solution maybe you can suggest some file with hadoop version or other signature file for validation &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:12:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186072#M73330</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-10T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186073#M73331</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also check the successfully registered Blueprints details inside the Ambari DB &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# psql -U ambari ambari -c "select * from blueprint"
Password for user ambari: bigdata
 blueprint_name | security_type | security_descriptor_reference | stack_id 
----------------+---------------+-------------------------------+----------
 BlueprintTest  | NONE  |  |  6
(1 row)

&lt;/PRE&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"hdp-select" &lt;/STRONG&gt;sets a given version to be the current version, by creating appropriate symlinks to the folder with appropriate version number. This utility "hdp-select" also lists the installed component versions based on the symlink info.   So we can not rely on it to validate the blueprint registration.   And this command is installed when the HDP components are installed on the host.&lt;/P&gt;&lt;P&gt;So it can not be used for blueprint installation validation as installation might fail on some hosts or might be incomplete installation Or symlinks might be broken ...etc&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:15:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186073#M73331</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-10T21:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186074#M73332</link>
      <description>&lt;P&gt;please show me the fulll syntax because I get (Password for user ambari:) , can we run this command without enter pass?&lt;/P&gt;&lt;P&gt;or maybe set the password in command ( because I need to set it in the script ) &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:19:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186074#M73332</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-10T21:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186075#M73333</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can refer to Standard Postgres Documentation in order to know how to pass the password in Non Interactive mode.&lt;/P&gt;&lt;P&gt;Following doc shows a way:   &lt;A href="https://www.postgresql.org/docs/8.3/static/libpq-pgpass.html" target="_blank"&gt;https://www.postgresql.org/docs/8.3/static/libpq-pgpass.html&lt;/A&gt;&lt;/P&gt;&lt;P&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, 10 Jan 2018 21:27:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186075#M73333</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-10T21:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186076#M73334</link>
      <description>&lt;P&gt;I just want to ask - why this approach not works ?&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;su - postgres -c "     psql -tc \"select * from blueprint\" "
ERROR:  relation "blueprint" does not exist
LINE 1: select * from blueprint
                      ^&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jan 2018 22:01:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186076#M73334</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-10T22:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186077#M73335</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please try this &lt;STRONG&gt;"-d ambari" &lt;/STRONG&gt;to tell the database name as "ambari"&lt;/P&gt;&lt;PRE&gt;# su - postgres -c "psql -d ambari -tc 'select * from ambari.blueprint' &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# su - postgres -c "psql -d ambari -tc 'select * from ambari.blueprint' "
 BlueprintTest  | NONE          |                               |        6
&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, 10 Jan 2018 22:16:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186077#M73335</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-10T22:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to check that blueprint installed but not by curl API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186078#M73336</link>
      <description>&lt;P&gt;well done Jay you are the best &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 22:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-that-blueprint-installed-but-not-by-curl-API/m-p/186078#M73336</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-01-10T22:28:49Z</dc:date>
    </item>
  </channel>
</rss>

