Reply
Explorer
Posts: 6
Registered: ‎06-05-2016

i needed automatically creation of AD user directory in hdfs

I have CLoudera 5.7 setup already integrated with Active directory, using kerberos as shown over AD integration. But the issue is that I have to create a user directory in HDFS @ /user for each user to provide access to the user to work over hadoop. Is their any way which will automatically create user directory in hdfs as soon as the user login over edge node? As it is very difficult to create and delete user directory of 7000+ employee over cluster.

Explorer
Posts: 9
Registered: ‎05-12-2016

Re: i needed automatically creation of AD user directory in hdfs

[ Edited ]

Hello

 

I may be wrong... because I didn't test it, but I think you can use Hue for sync users from  a given group in AD as at "Importing users and groups" http://www.cloudera.com/documentation/enterprise/latest/topics/cdh_sg_hue_ldap_config.html and checking the option "create home directories" this should create the /user/<username> folder of each AD user synced.

Explorer
Posts: 6
Registered: ‎06-05-2016

Re: i needed automatically creation of AD user directory in hdfs

thanks for the response

 

i need to know whether their is any provision through which we can create a directory in hdfs as soon as user login the linux system. But till now we did not have any provision for that as solution given over below URL

https://community.cloudera.com/t5/Storage-Random-Access-HDFS/Create-user-directory-automatically-in-...

Explorer
Posts: 19
Registered: ‎09-22-2016

Re: i needed automatically creation of AD user directory in hdfs

As of now HDFS does not create the home directories with AD integration. One way to create home directories automatically is with HUE. Hue has an option to create home directory while setting up the users to use Hue. If the home directory is already present Hue will ignore that.

 

Thanks,

Suri