You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Satyanarayana Jampa <sj...@innominds.com> on 2016/12/16 05:20:51 UTC
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.
RE: custom config property
Posted by Satyanarayana Jampa <sj...@innominds.com>.
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 <sm...@hortonworks.com>> wrote:
Ah! that may be custom UI code.
Can some one familiar with the UI code respond?
thanks
Sumit
________________________________
From: Satyanarayana Jampa <sj...@innominds.com>>
Sent: Thursday, December 15, 2016 11:02 PM
To: user@ambari.apache.org<ma...@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<ma...@hortonworks.com>]
Sent: 16 December 2016 11:20
To: user@ambari.apache.org<ma...@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 <sj...@innominds.com>>
Sent: Thursday, December 15, 2016 9:20 PM
To: user@ambari.apache.org<ma...@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.
RE: custom config property
Posted by Satyanarayana Jampa <sj...@innominds.com>.
Hi Alexander,
Created the jira ticket, please modify it as needed:
https://issues.apache.org/jira/browse/AMBARI-19249
Thanks,
Satya.
From: Alexander Antonenko [mailto:alexantonenko@apache.org]
Sent: 19 December 2016 19:53
To: user@ambari.apache.org
Subject: Re: custom config property
This is something that has to be done in different files, and different places, this is a whole bunch of work. I can suggest you file a ticket in https://issues.apache.org/jira/browse/AMBARI regarding this.
Or as Sumit said :
In order to define customized configuration property, user should use theme for enhanced configs (https://cwiki.apache.org/confluence/display/AMBARI/Enhanced+Configs)
- This is already implemented in trunk for configs that you are interested in.
On Mon, Dec 19, 2016 at 11:02 AM, Satyanarayana Jampa <sj...@innominds.com>> wrote:
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<ma...@apache.org>]
Sent: 16 December 2016 23:58
To: user@ambari.apache.org<ma...@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 <sm...@hortonworks.com>> wrote:
Ah! that may be custom UI code.
Can some one familiar with the UI code respond?
thanks
Sumit
________________________________
From: Satyanarayana Jampa <sj...@innominds.com>>
Sent: Thursday, December 15, 2016 11:02 PM
To: user@ambari.apache.org<ma...@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<ma...@hortonworks.com>]
Sent: 16 December 2016 11:20
To: user@ambari.apache.org<ma...@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 <sj...@innominds.com>>
Sent: Thursday, December 15, 2016 9:20 PM
To: user@ambari.apache.org<ma...@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.
Re: custom config property
Posted by Alexander Antonenko <al...@apache.org>.
This is something that has to be done in different files, and different
places, this is a whole bunch of work. I can suggest you file a ticket in
https://issues.apache.org/jira/browse/AMBARI regarding this.
Or as Sumit said :
> In order to define customized configuration property, user should use
> theme for enhanced configs (
> https://cwiki.apache.org/confluence/display/AMBARI/Enhanced+Configs)
- This is already implemented in trunk for configs that you are interested
in.
On Mon, Dec 19, 2016 at 11:02 AM, Satyanarayana Jampa <sj...@innominds.com>
wrote:
> 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 <sm...@hortonworks.com>
> wrote:
>
> Ah! that may be custom UI code.
>
>
>
> Can some one familiar with the UI code respond?
>
>
>
> thanks
>
> Sumit
> ------------------------------
>
> *From:* Satyanarayana Jampa <sj...@innominds.com>
> *Sent:* Thursday, December 15, 2016 11:02 PM
> *To:* 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]
> *Sent:* 16 December 2016 11:20
> *To:* 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 <sj...@innominds.com>
> *Sent:* Thursday, December 15, 2016 9:20 PM
> *To:* 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.
>
>
>
>
>
Re: custom config property
Posted by Alexander Antonenko <al...@apache.org>.
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 <sm...@hortonworks.com>
wrote:
> Ah! that may be custom UI code.
>
>
> Can some one familiar with the UI code respond?
>
>
> thanks
>
> Sumit
> ------------------------------
> *From:* Satyanarayana Jampa <sj...@innominds.com>
> *Sent:* Thursday, December 15, 2016 11:02 PM
> *To:* 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]
> *Sent:* 16 December 2016 11:20
> *To:* 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 <sj...@innominds.com>
> *Sent:* Thursday, December 15, 2016 9:20 PM
> *To:* 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.
>
>
>
Re: custom config property
Posted by Sumit Mohanty <sm...@hortonworks.com>.
?Ah! that may be custom UI code.
Can some one familiar with the UI code respond?
thanks
Sumit
________________________________
From: Satyanarayana Jampa <sj...@innominds.com>
Sent: Thursday, December 15, 2016 11:02 PM
To: 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]
Sent: 16 December 2016 11:20
To: 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 <sj...@innominds.com>>
Sent: Thursday, December 15, 2016 9:20 PM
To: user@ambari.apache.org<ma...@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.
RE: custom config property
Posted by Satyanarayana Jampa <sj...@innominds.com>.
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]
Sent: 16 December 2016 11:20
To: 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 <sj...@innominds.com>>
Sent: Thursday, December 15, 2016 9:20 PM
To: user@ambari.apache.org<ma...@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.
Re: custom config property
Posted by Sumit Mohanty <sm...@hortonworks.com>.
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 <sj...@innominds.com>
Sent: Thursday, December 15, 2016 9:20 PM
To: 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.