You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Nathan Falk (JIRA)" <ji...@apache.org> on 2015/12/02 03:06:11 UTC

[jira] [Commented] (AMBARI-13903) Need a way to set "advanced" properties as optional (isRequired=false)

    [ https://issues.apache.org/jira/browse/AMBARI-13903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035118#comment-15035118 ] 

Nathan Falk commented on AMBARI-13903:
--------------------------------------

It took a while before I had a chance to try this out.

No, <empty-value-valid>true</empty-value-valid> does not allow a value to be blank for an "advanced" configuration, such as you would find for any custom service. Ambari still flags the field as "Input required" and does not let you continue.

I suspect that an empty value works for hadoop.security.key.provider.path because it is defined in site_properties.js:

  {
    "id": "site property",
    "name": "hadoop.security.key.provider.path",
    "displayName": "hadoop.security.key.provider.path",
    "defaultValue": "",
    "isRequired": false,
    "category": "Advanced core-site",
    "serviceName": "HDFS", 
    "filename": "core-site.xml"
  },


What I'm looking for is a way to specify the equivalent of "isRequired": false in the xml and not have to put it in site_properties.js.

> Need a way to set "advanced" properties as optional (isRequired=false)
> ----------------------------------------------------------------------
>
>                 Key: AMBARI-13903
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13903
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-web
>    Affects Versions: 2.1.0
>            Reporter: Nathan Falk
>
> The only way to let a configuration property be optional seems to be to define it in site_properties.js. It should be possible to specify required=false for any property in any xml file in the stack.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)