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.

Autocompletion of names not working in Ranger

Highlighted

Autocompletion of names not working in Ranger

I just installed Ranger and enabled HDFS, Hive, HBase, Yarn, and Knox plugins. Security related everything works great. However, autocompletion of entity names (Hive db's, tables; HBase tables etc) doesn't work. Also, "Test connection" from respective repository pages (accessible by clicking "Edit" on a repository the top panel) works only for Yarn, but for other 4 components it doesn't work. The message is Connection failed. Unable to connect repository with given config for <cluster name>. Any ideas why? I have HA for HDFS, Hive and HBase and 2 Knox hosts, but each repo contains a reference to only one of related hosts. The cluster is kerberized.

5 REPLIES 5
Highlighted

Re: Autocompletion of names not working in Ranger

Just saw this https://community.hortonworks.com/questions/12039/ranger-ui-for-hive-plug-in-auto-complete-of-tables... and gave permissions to the rangerlookup user, but no luck.

Highlighted

Re: Autocompletion of names not working in Ranger

@Predrag Minovic

See

https://community.hortonworks.com/questions/12039/ranger-ui-for-hive-plug-in-auto-complete-of-tables...

Add a local user or if kerberos, create another user principal with a password and use that user in every repository configuration property for each plug in. You can create a different user for each plugin.

Then go to the Ranger Admin and edit each Repository and add the user and password.

Highlighted

Re: Autocompletion of names not working in Ranger

Just tried to set the password in each repo but to no avail. I've already created a rangerlookup user in LDAP (I'm using FreeIPA), one for all repos, and set that in Ambari together with its PW. And I just revisited all repos in Ranger and entered that PW again (the rangerlookup user-name is already there). Saved a repo and retried the connection but still error. Though, you are right that it's Kerberos related because Yarn doesn't use such a user, and I can connect to Yarn.

Highlighted

Re: Autocompletion of names not working in Ranger

You have to change it in Ranger Admin for all Security Repos directly there, not just Ambari, becuase you already created them.

Highlighted

Re: Autocompletion of names not working in Ranger

Explorer

@Predrag Minovic

You need to do a couple of things.

First provide the permissions for the repo user in the ranger policy. Which you already did.

And second make sure that the repo user has the hdfs user directory setup with the right permissions and ownership.

Don't have an account?
Coming from Hortonworks? Activate your account here