Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Problem installing Ranger

Solved Go to solution

Problem installing Ranger

We ran into an error during Ranger installation on Mysql. Error 1071 the unique key is longer than 767 bytes. We could extend the innodb prefix to 3072 but this still means that no unique column can be longer than 767 and one of the unique key columns is 1024

anybody ran into this before?

Its not in the problem solving guide

Attaching the screen shot.

It’s Ambari-2.1.1 and HDP-2.3.0

41-exception.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Problem installing Ranger

New Contributor

Yes. This is known issue. You can get around this by "pre-creating" the database ranger,ranger_audit with the latin1 character set.

create database ranger CHARACTER SET=latin1;
create database ranger_audit CHARACTER SET=latin1;
3 REPLIES 3
Highlighted

Re: Problem installing Ranger

New Contributor

Yes. This is known issue. You can get around this by "pre-creating" the database ranger,ranger_audit with the latin1 character set.

create database ranger CHARACTER SET=latin1;
create database ranger_audit CHARACTER SET=latin1;

Re: Problem installing Ranger

New Contributor

Indeed! We have an Apache JIRA created for it already and it is a prime candidate to get scheduled soon. In the meantime we are also working to have this documented in the interim.

Best,

Re: Problem installing Ranger

Applied this recently as well with MySql 5.5 instance with HA (Tungsten). Haven't seen the issue on 5.6 basic install.