<?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: can't install ranger in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231789#M82661</link>
    <description>&lt;P&gt;ranger version 1.1.0&lt;/P&gt;&lt;P&gt;ambaris 2.7.0&lt;/P&gt;&lt;P&gt;hdp 3.0.0&lt;/P&gt;</description>
    <pubDate>Sat, 25 Aug 2018 21:10:15 GMT</pubDate>
    <dc:creator>uniKrau</dc:creator>
    <dc:date>2018-08-25T21:10:15Z</dc:date>
    <item>
      <title>can't install ranger</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231788#M82660</link>
      <description>&lt;P&gt;[I] Patch 006-createdefaultpublicgroup.sql is being applied..&lt;/P&gt;&lt;PRE&gt;2018-08-25 21:48:33,172  [JISQL] /usr/bin/java  -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-connector-java-5.1.25-bin.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://host/ranger -u 'rangeradmin' -p '********' -noheader -trim -c \; -input /usr/hdp/current/ranger-admin/db/mysql/patches/006-createdefaultpublicgroup.sql
Error executing: call insert_public_group_in_x_group_table(); 
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`ranger`.`x_group`, CONSTRAINT `x_group_FK_added_by_id` FOREIGN KEY (`added_by_id`) REFERENCES `x_portal_user` (`id`))
SQLException : SQL state: 23000 com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`ranger`.`x_group`, CONSTRAINT `x_group_FK_added_by_id` FOREIGN KEY (`added_by_id`) REFERENCES `x_portal_user` (`id`)) ErrorCode: 1452
2018-08-25 21:48:33,618  [JISQL] /usr/bin/java  -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-connector-java-5.1.25-bin.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://xxx/ranger -u 'rangeradmin' -p '********' -noheader -trim -c \; -query "select version from x_db_version_h where version = '006' and active = 'Y';"
2018-08-25 21:48:34,038  [JISQL] /usr/bin/java  -cp /usr/hdp/current/ranger-admin/ews/lib/mysql-connector-java-5.1.25-bin.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://xxx/ranger -u 'rangeradmin' -p '********' -noheader -trim -c \; -query "delete from x_db_version_h where version='006' and active='N' and updated_by='xxx';"
2018-08-25 21:48:34,483  [E] 006-createdefaultpublicgroup.sql import failed!&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 21:08:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231788#M82660</guid>
      <dc:creator>uniKrau</dc:creator>
      <dc:date>2018-08-25T21:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: can't install ranger</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231789#M82661</link>
      <description>&lt;P&gt;ranger version 1.1.0&lt;/P&gt;&lt;P&gt;ambaris 2.7.0&lt;/P&gt;&lt;P&gt;hdp 3.0.0&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 21:10:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231789#M82661</guid>
      <dc:creator>uniKrau</dc:creator>
      <dc:date>2018-08-25T21:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: can't install ranger</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231790#M82662</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@li Hao"&gt; @li Hao&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you try setting up a new database for Ranger? Here the assumption is the:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Root password is test2345&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ranger user, database and password is &lt;B&gt;ranger&lt;/B&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;##################################################
# Create the ranger user and database schema.
##################################################
mysql -u root -ptest2345
create user 'ranger'@'localhost' identified by 'ranger';
grant all privileges on *.* to 'ranger'@'%';
grant all privileges on *.* to 'ranger'@'localhost';
grant all privileges on *.* to 'ranger'@'fqdn';
grant all privileges on *.* to 'ranger'@'fqdn' identified by 'ranger' with grant option;
grant all privileges on *.* to 'ranger'@'localhost' identified by 'ranger' with grant option;
flush privileges;
quit; &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Log on as user ranger&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;##################################################
# As ranger user create the database
##################################################
mysql -u ranger -pranger
Create database ranger;
quit;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Now get back to the Ambari UI and retry installing Ranger all should be fine. Remember to drop that old database after successfully configuring ranger.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;HTH&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 03:24:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231790#M82662</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-08-27T03:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: can't install ranger</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231791#M82663</link>
      <description>&lt;P&gt;Thank you very much , btw does it must be a user named ranger&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 08:39:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231791#M82663</guid>
      <dc:creator>uniKrau</dc:creator>
      <dc:date>2018-08-27T08:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: can't install ranger</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231792#M82664</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@li Hao"&gt; @li Hao&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Great it worked for you... NOT really you can use any name you wish I just used it for convenience to enable identification between the component  users/databases.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 13:07:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231792#M82664</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-08-27T13:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: can't install ranger</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231793#M82665</link>
      <description>&lt;P&gt;Hi , I have the same problem. Do you install hdp 3.0 with ranger successfully? It seems  the table in the db [my db is mysql 5.7]  has foreign key constraint.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 22:51:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-install-ranger/m-p/231793#M82665</guid>
      <dc:creator>tianrenx</dc:creator>
      <dc:date>2018-08-27T22:51:47Z</dc:date>
    </item>
  </channel>
</rss>

