I finally managed to setup Ranger. I post here how I did it, in case it’s useful for someone else.
I went to the Ambari web site, and followed next steps:
- Dashboard tab.
- Click on the “Actions” button on the left, after all listed services.
- Click on “Add Service”.
- Select “Ranger” and “Ranger KMS”.
- Click on “Next”, and I’ve got the instructions Michael mentions.
Then I opened a SSH connection, and checked if I had a JDBC for MySql.
[root@sandbox java]# rpm -qa | grep mysql
mysql-libs-5.1.73-5.el6_6.x86_64
mysql-connector-java-5.1.17-6.el6.noarch
mysql-server-5.1.73-5.el6_6.x86_64
mysql-5.1.73-5.el6_6.x86_64
I set up the JDBC connection in the Ambari server.
ambari-server setup –jdbc-db=mysql –jdbc-driver=/usr/share/java/mysql-connector-java.jar
Still in the SSH session, I logged in MySQL with root:
mysql
or mysql -u root -p (click on Enter when prompted for password).
I run next query:
select * from mysql.user;
which showed that user root didn’t have a password in MySql. The password is required in Ambari to add the service Ranger.
So I added the password to root:
update mysql.user set password = PASSWORD(‘hadoop’) where password = ”;
flush privileges;
I went back to Ambari, accepted that I have the conditions required in the instructions, and proceed with the Wizard. I’ve got some warnings about some services which weren’t well configured, but I just continued. As I’ve said, the setup was successful.