Support Questions

Find answers, ask questions, and share your expertise

Ambari Hive view : check failed: File does not exist /home/ldapuser

I use my LDAP user logon to Ambari when I open HIVE VIEW ,it throw error file does not exist ‘/home/ldapuser’ .

I run command create folder .It can solved. But I want to know the home user can be created automatically when we log on. Because we have many user on LDAP that want to use HIVE VIEW .

3 REPLIES 3

Super Mentor

@Wil Don

Ambari provides an option to have the users created automatically post user creation as mentioned in the following doc

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-administration/content/create_use...

It can be done by enabling the following property inside the "/etc/ambari-server/conf/ambari.properties"

ambari.post.user.creation.hook.enabled=true

.

Add the script path to the ambari properties file:

ambari.post.user.creation.hook=/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh

Followed by Ambari Server Restart.

# ambari-server restart

.

@Jay Kumar SenSharma thank you so much for your recommendation. i will try as you recommend.

I try as you recommend . It don’t stiill automate. Please advise me how to modified kerborize file that I don’t modify. Thank you in advance.