Hi Michael,
root is not only a Linux user in the VM, but also a user in MySql. During the Ranger setup in Ambari you are required to give root’s password, and it is not allowed to leave it empty.
However, MySql root user is created with no password, so you need to set it prior to run the Ranger setup in Ambari.
Open a SSH session with root, and log in MySQL with root:
mysql
or mysql -u root -p (click on Enter when prompted for password).
If you run next query, you’ll see that user root doesn’t have a password:
select * from mysql.user;
Add the password to root:
update mysql.user set password = PASSWORD(‘hadoop’) where password = ”;
flush privileges;
Then you can continue with the Ranger setup in Ambari.
I posted all the steps I followed to setup Ranger here.