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:[email protected]]
Sent: 16 December 2016 23:58
To: [email protected]
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
<[email protected]<mailto:[email protected]>> wrote:
Ah! that may be custom UI code.
Can some one familiar with the UI code respond?
thanks
Sumit
________________________________
From: Satyanarayana Jampa <[email protected]<mailto:[email protected]>>
Sent: Thursday, December 15, 2016 11:02 PM
To: [email protected]<mailto:[email protected]>
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:[email protected]<mailto:[email protected]>]
Sent: 16 December 2016 11:20
To: [email protected]<mailto:[email protected]>
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 <[email protected]<mailto:[email protected]>>
Sent: Thursday, December 15, 2016 9:20 PM
To: [email protected]<mailto:[email protected]>
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.