You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Kang Minwoo <mi...@outlook.com> on 2019/08/23 05:11:17 UTC

ambari setup with options seems to does not modify ambari.properties

Hello,

I try to setup an ambari server.
First, I built rpm files from ambari 2.7.3 source.
And I installed ambari-server rpm.

After, I executed 'ambari-server setup' command with options.

--- command

ambari-server setup --silent --database mysql --databasehost localhost --databaseport <port> --databasename ambari --databaseusername ambari --databasepassword <passwd> --jdbc-db mysql --jdbc-driver <jar paht> --java-home $JAVA_HOME

---

ambari.properies did not change.

But If I use an ambari setup with prompt,  the file changed.


Best regards,
Minwoo Kang

Re: ambari setup with options seems to does not modify ambari.properties

Posted by Viraj Jasani <vi...@gmail.com>.
Hi Minwoo,

You might have to setup jdbc-db and jdbc-driver with separate command.
Please take a look at https://issues.apache.org/jira/browse/AMBARI-24916
It has the fix with new command setup-jdbc however, it is yet to be
cherry-picked to ongoing 2.7 release.

If you are looking for an immediate solution and since you are generating
rpm from source code, please remove this return statement:
https://github.com/apache/ambari/blob/branch-2.7/ambari-server/src/main/python/ambari_server/serverSetup.py#L1168,
generate rpms and the above mentioned setup command would work as expected.


Thanks,
Viraj


On Fri, Aug 23, 2019 at 10:41 AM Kang Minwoo <mi...@outlook.com>
wrote:

> Hello,
>
> I try to setup an ambari server.
> First, I built rpm files from ambari 2.7.3 source.
> And I installed ambari-server rpm.
>
> After, I executed 'ambari-server setup' command with options.
>
> --- command
>
> ambari-server setup --silent --database mysql --databasehost localhost
> --databaseport <port> --databasename ambari --databaseusername ambari
> --databasepassword <passwd> --jdbc-db mysql --jdbc-driver <jar paht>
> --java-home $JAVA_HOME
>
> ---
>
> ambari.properies did not change.
>
> But If I use an ambari setup with prompt,  the file changed.
>
>
> Best regards,
> Minwoo Kang
>