Created 06-29-2017 09:36 AM
Created 06-29-2017 10:27 AM
Please refer to the following doc:
Enable User Home Directory Creation:
By editing the "/etc/ambari-server/conf/ambari-properties" and adding the following:
ambari.post.user.creation.hook=/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh
.
For kerberized environment you must modify the kinit file path in the default user creation hook script.
/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh
.
Created 06-29-2017 10:27 AM
Please refer to the following doc:
Enable User Home Directory Creation:
By editing the "/etc/ambari-server/conf/ambari-properties" and adding the following:
ambari.post.user.creation.hook=/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh
.
For kerberized environment you must modify the kinit file path in the default user creation hook script.
/var/lib/ambari-server/resources/scripts/post-user-creation-hook.sh
.
Created 06-29-2017 03:05 PM
Thanks Jay SenSharma for sharing the link.
Created 07-31-2018 06:55 AM
Hi Jay ,
if group is being sync with ambari from ldap in this case will the directory be created for the all the members in the group ?
Created 11-23-2017 01:13 PM
and don't forget to add:
ambari.post.user.creation.hook.enabled=true
to "/etc/ambari-server/conf/ambari-properties" as well !!
Created 12-05-2018 03:18 PM
Hello jay,
May i know how to know default kinit file location?
and
my cluster is kerberized can you tell me what was the parameter in the post-user-creation-hook.sh script specifies the kinit file path?
Regards,
Venkatesh.
Created 12-05-2018 04:14 PM
its easy, just execute
which kinit
on Nix and the output is what should go into the hook script part at:
echo "The cluster is secure, calling kinit ..." kinit_cmd="/usr/bin/kinit -kt $HDFS_KEYTAB $HDFS_PRINCIPAL"
But 9 times ou of 10 /usr/bin/kinit will be just fine
Created 12-13-2018 02:53 AM
Hello Jasper/Jay,
I have tried all the steps mentioned above. But user home directory was not getting created when user logs on to HDFS for first time.
The newly created user directories are getting created only after running LDAP Sync Script and followed by ambari server service restart.
We cannot perform Ambari server service restart every time when user gets created in environment. So please suggest When this hook script is getting called and executed?
and remedy for this issue.
Regards,
venkatesh.