@Manish Gupta
After the installation use following steps to replace default service account with custom service account:
For zeppelin:
1. Stop zeppelin service from Ambari.
2. Change the zeppelin user from Ambari server using configs.sh (this command is only available from ambari-server host):
# /var/lib/ambari-server/resources/scripts/configs.sh -u <AmbariAdminUser> -p <AmbariAdminUserPassword> set localhost <Cluster-name> zeppelin-env zeppelin_user <ZEP-USER>
3. Set the ownership on zeppelin log and run directories.
# chown -R <ZEP-USER>:hadoop /var/log/zeppelin
# chown -R <ZEP-USER>:hadoop /var/run/zeppelin
4. Start zeppelin service from Ambari