You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by priyanka gugale <pr...@apache.org> on 2016/06/23 13:06:07 UTC
Specify optional service config parameter without default value
Hi,
I would like to specify couple of service parameters which are optional and
don't have a default value.
I have specified my parameter in following way in config file:
<property>
<name>datatorrent.config_file.path</name>
<value></value>
<description>Full path to existing dt-site.xml file to use for new
installation. Overrides default and previous dt-site.xml</description>
</property>
Ambari doesn't allow the blank config value. Please check attached
screenshot.
Is there any xml tag in property which will allow me to skip optional
parameters?
-Priyanka
Re: Specify optional service config parameter without default value
Posted by priyanka gugale <pr...@gmail.com>.
This seems to work with Ambari version 2.2.2.
Thanks for all inputs.
-Priyanka
On Wed, Jun 29, 2016 at 11:30 AM, priyanka gugale <priyanka.gugale@gmail.com
> wrote:
> As I understand combination of suggested option should work. Can see it
> being used in Kerberos service as well in Ambari repository:
> <property require-input="false">
> <name>domains</name>
> <display-name>Domains</display-name>
> <description>
> A comma-separated list of domain names used to map server host names
> to the Realm name (e.g. .example.com,example.com). This is optional
> </description>
> <value/>
> <value-attributes>
> <empty-value-valid>true</empty-value-valid>
> <overridable>false</overridable>
> </value-attributes>
> </property>
>
>
> But for some reason doesn't work for it. It still marks config parameters
> are required. I am using Ambari version 2.0, is there any known issue?
>
> -Priyanka
>
> On Mon, Jun 27, 2016 at 10:14 PM, Juanjo Marron <ju...@yahoo.com>
> wrote:
>
>> Hi Priyanka,
>>
>> Could this property option help on your goal: <property
>> require-input="false"> ?
>>
>>
>>
>>
>> On Friday, June 24, 2016 8:52 AM, priyanka gugale <
>> priyanka.gugale@gmail.com> wrote:
>>
>>
>> Hi,
>>
>> I am still facing the problem. Here is my updated configuration:
>>
>> <property>
>> <name>datatorrent.config_file.path</name>
>> <value></value>
>> <description>Full path to existing dt-site.xml file to use for new
>> installation. Overrides default and previous dt-site.xml</description>
>> <value-attributes>
>> <empty-value-valid>true</empty-value-valid>
>> </value-attributes>
>> </property>
>>
>> Even after adding this configuration it shows me the config is required.
>>
>> -Priyanka
>>
>> On Fri, Jun 24, 2016 at 1:24 PM, priyanka gugale <pr...@apache.org>
>> wrote:
>>
>> Thanks Alejandro fro response.
>>
>> -Priyanka
>>
>> On Thu, Jun 23, 2016 at 9:40 PM, Alejandro Fernandez <
>> afernandez@hortonworks.com> wrote:
>>
>> <property>
>> <name>foo</name>
>> <value></value>
>> <description>bar</description>
>> * <value-attributes>*
>> * <empty-value-valid>true</empty-value-valid>*
>> * </value-attributes>*
>> <on-ambari-upgrade add="true"/>
>> </property>
>>
>> From: priyanka gugale <pr...@apache.org>
>> Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
>> Date: Thursday, June 23, 2016 at 6:06 AM
>> To: "user@ambari.apache.org" <us...@ambari.apache.org>
>> Subject: Specify optional service config parameter without default value
>>
>> Hi,
>>
>> I would like to specify couple of service parameters which are optional
>> and don't have a default value.
>>
>> I have specified my parameter in following way in config file:
>>
>> <property>
>> <name>datatorrent.config_file.path</name>
>> <value></value>
>> <description>Full path to existing dt-site.xml file to use for new
>> installation. Overrides default and previous dt-site.xml</description>
>> </property>
>>
>> Ambari doesn't allow the blank config value. Please check attached
>> screenshot.
>> Is there any xml tag in property which will allow me to skip optional
>> parameters?
>>
>> -Priyanka
>>
>>
>>
>>
>>
>>
>
Re: Specify optional service config parameter without default value
Posted by priyanka gugale <pr...@gmail.com>.
As I understand combination of suggested option should work. Can see it
being used in Kerberos service as well in Ambari repository:
<property require-input="false">
<name>domains</name>
<display-name>Domains</display-name>
<description>
A comma-separated list of domain names used to map server host names
to the Realm name (e.g. .example.com,example.com). This is optional
</description>
<value/>
<value-attributes>
<empty-value-valid>true</empty-value-valid>
<overridable>false</overridable>
</value-attributes>
</property>
But for some reason doesn't work for it. It still marks config parameters
are required. I am using Ambari version 2.0, is there any known issue?
-Priyanka
On Mon, Jun 27, 2016 at 10:14 PM, Juanjo Marron <ju...@yahoo.com>
wrote:
> Hi Priyanka,
>
> Could this property option help on your goal: <property
> require-input="false"> ?
>
>
>
>
> On Friday, June 24, 2016 8:52 AM, priyanka gugale <
> priyanka.gugale@gmail.com> wrote:
>
>
> Hi,
>
> I am still facing the problem. Here is my updated configuration:
>
> <property>
> <name>datatorrent.config_file.path</name>
> <value></value>
> <description>Full path to existing dt-site.xml file to use for new
> installation. Overrides default and previous dt-site.xml</description>
> <value-attributes>
> <empty-value-valid>true</empty-value-valid>
> </value-attributes>
> </property>
>
> Even after adding this configuration it shows me the config is required.
>
> -Priyanka
>
> On Fri, Jun 24, 2016 at 1:24 PM, priyanka gugale <pr...@apache.org>
> wrote:
>
> Thanks Alejandro fro response.
>
> -Priyanka
>
> On Thu, Jun 23, 2016 at 9:40 PM, Alejandro Fernandez <
> afernandez@hortonworks.com> wrote:
>
> <property>
> <name>foo</name>
> <value></value>
> <description>bar</description>
> * <value-attributes>*
> * <empty-value-valid>true</empty-value-valid>*
> * </value-attributes>*
> <on-ambari-upgrade add="true"/>
> </property>
>
> From: priyanka gugale <pr...@apache.org>
> Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
> Date: Thursday, June 23, 2016 at 6:06 AM
> To: "user@ambari.apache.org" <us...@ambari.apache.org>
> Subject: Specify optional service config parameter without default value
>
> Hi,
>
> I would like to specify couple of service parameters which are optional
> and don't have a default value.
>
> I have specified my parameter in following way in config file:
>
> <property>
> <name>datatorrent.config_file.path</name>
> <value></value>
> <description>Full path to existing dt-site.xml file to use for new
> installation. Overrides default and previous dt-site.xml</description>
> </property>
>
> Ambari doesn't allow the blank config value. Please check attached
> screenshot.
> Is there any xml tag in property which will allow me to skip optional
> parameters?
>
> -Priyanka
>
>
>
>
>
>
Re: Specify optional service config parameter without default value
Posted by Juanjo Marron <ju...@yahoo.com>.
Hi Priyanka,
Could this property option help on your goal: <property require-input="false"> ?
On Friday, June 24, 2016 8:52 AM, priyanka gugale <pr...@gmail.com> wrote:
Hi,
I am still facing the problem. Here is my updated configuration:
<property>
<name>datatorrent.config_file.path</name>
<value></value>
<description>Full path to existing dt-site.xml file to use for new installation. Overrides default and previous dt-site.xml</description>
<value-attributes>
<empty-value-valid>true</empty-value-valid>
</value-attributes>
</property>
Even after adding this configuration it shows me the config is required.
-Priyanka
On Fri, Jun 24, 2016 at 1:24 PM, priyanka gugale <pr...@apache.org> wrote:
Thanks Alejandro fro response.
-Priyanka
On Thu, Jun 23, 2016 at 9:40 PM, Alejandro Fernandez <af...@hortonworks.com> wrote:
<property> <name>foo</name> <value></value> <description>bar</description> <value-attributes> <empty-value-valid>true</empty-value-valid> </value-attributes> <on-ambari-upgrade add="true"/> </property>
From: priyanka gugale <pr...@apache.org>
Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
Date: Thursday, June 23, 2016 at 6:06 AM
To: "user@ambari.apache.org" <us...@ambari.apache.org>
Subject: Specify optional service config parameter without default value
Hi,
I would like to specify couple of service parameters which are optional and don't have a default value.
I have specified my parameter in following way in config file:
<property>
<name>datatorrent.config_file.path</name>
<value></value>
<description>Full path to existing dt-site.xml file to use for new installation. Overrides default and previous dt-site.xml</description>
</property>
Ambari doesn't allow the blank config value. Please check attached screenshot.
Is there any xml tag in property which will allow me to skip optional parameters?
-Priyanka
Re: Specify optional service config parameter without default value
Posted by priyanka gugale <pr...@gmail.com>.
Hi,
I am still facing the problem. Here is my updated configuration:
<property>
<name>datatorrent.config_file.path</name>
<value></value>
<description>Full path to existing dt-site.xml file to use for new
installation. Overrides default and previous dt-site.xml</description>
<value-attributes>
<empty-value-valid>true</empty-value-valid>
</value-attributes>
</property>
Even after adding this configuration it shows me the config is required.
-Priyanka
On Fri, Jun 24, 2016 at 1:24 PM, priyanka gugale <pr...@apache.org> wrote:
> Thanks Alejandro fro response.
>
> -Priyanka
>
> On Thu, Jun 23, 2016 at 9:40 PM, Alejandro Fernandez <
> afernandez@hortonworks.com> wrote:
>
>> <property>
>> <name>foo</name>
>> <value></value>
>> <description>bar</description>
>> * <value-attributes>*
>> * <empty-value-valid>true</empty-value-valid>*
>> * </value-attributes>*
>> <on-ambari-upgrade add="true"/>
>> </property>
>>
>> From: priyanka gugale <pr...@apache.org>
>> Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
>> Date: Thursday, June 23, 2016 at 6:06 AM
>> To: "user@ambari.apache.org" <us...@ambari.apache.org>
>> Subject: Specify optional service config parameter without default value
>>
>> Hi,
>>
>> I would like to specify couple of service parameters which are optional
>> and don't have a default value.
>>
>> I have specified my parameter in following way in config file:
>>
>> <property>
>> <name>datatorrent.config_file.path</name>
>> <value></value>
>> <description>Full path to existing dt-site.xml file to use for new
>> installation. Overrides default and previous dt-site.xml</description>
>> </property>
>>
>> Ambari doesn't allow the blank config value. Please check attached
>> screenshot.
>> Is there any xml tag in property which will allow me to skip optional
>> parameters?
>>
>> -Priyanka
>>
>
>
Re: Specify optional service config parameter without default value
Posted by priyanka gugale <pr...@apache.org>.
Thanks Alejandro fro response.
-Priyanka
On Thu, Jun 23, 2016 at 9:40 PM, Alejandro Fernandez <
afernandez@hortonworks.com> wrote:
> <property>
> <name>foo</name>
> <value></value>
> <description>bar</description>
> * <value-attributes>*
> * <empty-value-valid>true</empty-value-valid>*
> * </value-attributes>*
> <on-ambari-upgrade add="true"/>
> </property>
>
> From: priyanka gugale <pr...@apache.org>
> Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>
> Date: Thursday, June 23, 2016 at 6:06 AM
> To: "user@ambari.apache.org" <us...@ambari.apache.org>
> Subject: Specify optional service config parameter without default value
>
> Hi,
>
> I would like to specify couple of service parameters which are optional
> and don't have a default value.
>
> I have specified my parameter in following way in config file:
>
> <property>
> <name>datatorrent.config_file.path</name>
> <value></value>
> <description>Full path to existing dt-site.xml file to use for new
> installation. Overrides default and previous dt-site.xml</description>
> </property>
>
> Ambari doesn't allow the blank config value. Please check attached
> screenshot.
> Is there any xml tag in property which will allow me to skip optional
> parameters?
>
> -Priyanka
>
Re: Specify optional service config parameter without default value
Posted by Alejandro Fernandez <af...@hortonworks.com>.
<property>
<name>foo</name>
<value></value>
<description>bar</description>
<value-attributes>
<empty-value-valid>true</empty-value-valid>
</value-attributes>
<on-ambari-upgrade add="true"/>
</property>
From: priyanka gugale <pr...@apache.org>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Date: Thursday, June 23, 2016 at 6:06 AM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Subject: Specify optional service config parameter without default value
Hi,
I would like to specify couple of service parameters which are optional and don't have a default value.
I have specified my parameter in following way in config file:
<property>
<name>datatorrent.config_file.path</name>
<value></value>
<description>Full path to existing dt-site.xml file to use for new installation. Overrides default and previous dt-site.xml</description>
</property>
Ambari doesn't allow the blank config value. Please check attached screenshot.
Is there any xml tag in property which will allow me to skip optional parameters?
-Priyanka