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.

How to format INIT_SCRIPT_FILE

Highlighted

How to format INIT_SCRIPT_FILE

New Contributor

Has anybody used a script file to run the setup. The following command is supposed to do it but I can't find examples of how to format the file. basically I want an automated setup but change the ambari server to use a non-root user.

ambari-server setup --init-script-file=INIT_SCRIPT_FILE
1 REPLY 1

Re: How to format INIT_SCRIPT_FILE

Super Mentor

@Rupert Bailey

- Prior to the fix [1] the the default value for "init-script-file" was pointing "/var/lib/ambari-server/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql".

- See [2] However i do not think that this option "init-script-file" will help in setting "non root user" for ambari.

- You can pass the amabri provided Database script to "init-script-file".

- In order to setup ambari as Non Root User you can refer to:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-security/content/configuring_ambar...

.

[1] https://issues.apache.org/jira/browse/AMBARI-15298

[2] https://git1-us-west.apache.org/repos/asf?p=ambari.git;a=commitdiff;h=654b9a3b03252dc692728f557df19f...

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