<?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: Install Ranger via blueprint in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172514#M54317</link>
    <description>&lt;P&gt;@G&lt;A href="https://community.hortonworks.com/users/13910/georgkfheiler.html"&gt;eorg Heiler&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just reviewing the your blueprint json content at &lt;A href="https://gist.github.com/geoHeil/bbe4eb9cef4f4e6c2feca743f2b19bc8" target="_blank"&gt;https://gist.github.com/geoHeil/bbe4eb9cef4f4e6c2feca743f2b19bc8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;can you please check why there is a space between hostname and port number for db_host and policymanager_external_url?  Please correct and try again.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;          "policymgr_external_url" : "http:// mn01.vagrant  :6080",&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;          "db_host" : " mn01.vagrant  :3306",&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 14 Feb 2017 02:16:27 GMT</pubDate>
    <dc:creator>apappu</dc:creator>
    <dc:date>2017-02-14T02:16:27Z</dc:date>
    <item>
      <title>Install Ranger via blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172513#M54316</link>
      <description>&lt;P&gt;When installing Ranger via a blueprint I get the following exception:&lt;/P&gt;&lt;PRE&gt;2017-02-13 18:22:10,754  [E] create_dbversion_catalog.sql file import failed!
2017-02-13 18:22:40,763  [JISQL] /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/bin/java -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-connector-java.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://mn01.vagrant  :3306/ranger -u 'ranger' -p '********' -noheader -trim -c \; -query "show tables like 'x_db_version_h';"
SQLException : SQL state: 3D000 java.sql.SQLException: No database selected ErrorCode: 1046
SQLException : SQL state: 3D000 java.sql.SQLException: No database selected ErrorCode: 1046
2017-02-13 18:22:41,149  [I] Table x_db_version_h does not exist in database ranger
2017-02-13 18:22:41,149  [JISQL] /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/bin/java -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-connector-java.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://mn01.vagrant  :3306/ranger -u 'ranger' -p '********' -noheader -trim -c \; -input /usr/hdp/current/ranger-admin/db/mysql/create_dbversion_catalog.sql
Error executing: create table if not exists x_db_version_h  ( 	id				bigint not null auto_increment primary key, 	version   		varchar(64) not null, 	inst_at 	    timestamp not null default current_timestamp, 	inst_by 	    varchar(256) not null, 	updated_at      timestamp null default null,     updated_by      varchar(256) not null, 	active          ENUM('Y', 'N') default 'Y' ) ; 
java.sql.SQLException: No database selected
SQLException : SQL state: 3D000 java.sql.SQLException: No database selected ErrorCode: 1046
2017-02-13 18:22:41,556  [E] create_dbversion_catalog.sql file import failed!&lt;/PRE&gt;&lt;P&gt;The blueprint's json can be found here: &lt;A href="https://gist.github.com/geoHeil/bbe4eb9cef4f4e6c2feca743f2b19bc8" target="_blank"&gt;https://gist.github.com/geoHeil/bbe4eb9cef4f4e6c2feca743f2b19bc8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The complete input json is found here&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/geoHeil/b54181d35c0d4549c0da25465cc93e29"&gt;https://gist.github.com/geoHeil/b54181d35c0d4549c0da25465cc93e29&lt;/A&gt; and the full output txt &lt;/P&gt;&lt;DIV&gt;&lt;A href="https://gist.github.com/geoHeil/6b3d08d748e03703b35ddce424b108c1"&gt;https://gist.github.com/geoHeil/6b3d08d748e03703b35ddce424b108c1&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Feb 2017 01:27:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172513#M54316</guid>
      <dc:creator>georg_kf_heiler</dc:creator>
      <dc:date>2017-02-14T01:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Install Ranger via blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172514#M54317</link>
      <description>&lt;P&gt;@G&lt;A href="https://community.hortonworks.com/users/13910/georgkfheiler.html"&gt;eorg Heiler&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just reviewing the your blueprint json content at &lt;A href="https://gist.github.com/geoHeil/bbe4eb9cef4f4e6c2feca743f2b19bc8" target="_blank"&gt;https://gist.github.com/geoHeil/bbe4eb9cef4f4e6c2feca743f2b19bc8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;can you please check why there is a space between hostname and port number for db_host and policymanager_external_url?  Please correct and try again.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;          "policymgr_external_url" : "http:// mn01.vagrant  :6080",&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;          "db_host" : " mn01.vagrant  :3306",&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 14 Feb 2017 02:16:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172514#M54317</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-02-14T02:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Install Ranger via blueprint</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172515#M54318</link>
      <description>&lt;P&gt;I used```&lt;/P&gt;&lt;P&gt;"policymgr_external_url" : "https://{% if isSingleNode %} {{ groups[cluster_name+'_mn01'][0] }}  {% else %} {{ groups[cluster_name+'_mn03'][0] }} {% endif %}:6182",
{% else %}
          "policymgr_external_url" : "http://{% if isSingleNode %} {{ groups[cluster_name+'_mn01'][0] }}  {% else %} {{ groups[cluster_name+'_mn03'][0] }}{% endif %}:6080",
{% endif %}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;to create the JSON. It is adopted from &lt;A href="https://github.com/bushnoh/ansible-hadoop-asap/blob/master/blueprints/bare_cluster.bp.j2" target="_blank"&gt;https://github.com/bushnoh/ansible-hadoop-asap/blob/master/blueprints/bare_cluster.bp.j2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;When removing the spaces inn all places ineed, finally ambari successfully installs ranger.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 03:06:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Install-Ranger-via-blueprint/m-p/172515#M54318</guid>
      <dc:creator>georg_kf_heiler</dc:creator>
      <dc:date>2017-02-14T03:06:13Z</dc:date>
    </item>
  </channel>
</rss>

