ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satyanarayana Jampa <sja...@innominds.com>
Subject RE: custom config property
Date Mon, 19 Dec 2016 09:02:41 GMT
What part of the UI code, needs to be hard coded.
                So far I found one file with references to the fields under Advanced Tab:
“/opt/apache-ambari-2.2.2-src/ambari-web/public/javascripts/app.js”

Can someone point me to the correct UI code.

From: Alexander Antonenko [mailto:alexantonenko@apache.org]
Sent: 16 December 2016 23:58
To: user@ambari.apache.org
Subject: Re: custom config property

In order to define customized configuration property, user should use theme for enhanced configs
(https://cwiki.apache.org/confluence/display/AMBARI/Enhanced+Configs). Making the property
appear outside enhanced configs tab (i.e., inside Advanced tab) is only possible after hardcoding
inside UI code.

On Fri, Dec 16, 2016 at 6:46 PM, Sumit Mohanty <smohanty@hortonworks.com<mailto:smohanty@hortonworks.com>>
wrote:

​Ah! that may be custom UI code.



Can some one familiar with the UI code respond?



thanks

Sumit

________________________________
From: Satyanarayana Jampa <sjampa@innominds.com<mailto:sjampa@innominds.com>>
Sent: Thursday, December 15, 2016 11:02 PM
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: RE: custom config property

Hi Sumit,

                Thank you for your inputs. But looks like theme is for the first tab.
I am looking for an option something like in the attached screenshot.

Thanks,
Satya.
From: Sumit Mohanty [mailto:smohanty@hortonworks.com<mailto:smohanty@hortonworks.com>]
Sent: 16 December 2016 11:20
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: Re: custom config property


Look at the combination of

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/configuration/hive-env.xml#L92-L115

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/themes/theme.json#L322-L327



Wiki is at - https://cwiki.apache.org/confluence/display/AMBARI/Enhanced+Configs​

​

________________________________
From: Satyanarayana Jampa <sjampa@innominds.com<mailto:sjampa@innominds.com>>
Sent: Thursday, December 15, 2016 9:20 PM
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: custom config property


Can someone help me out in pointing the steps for creating a configuration property with radio
button options. Something similar to what we have it for “hive database” selection under
hive config tab.
Example:
                custom_database:

o   Mysql

o   Postgres

o   Mssql

Thanks,
Satya.


Mime
View raw message