You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2015/01/27 21:50:35 UTC
[jira] [Resolved] (AMBARI-9285) Add default values for ranger
plugin properties
[ https://issues.apache.org/jira/browse/AMBARI-9285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yusaku Sako resolved AMBARI-9285.
---------------------------------
Resolution: Fixed
Committed to trunk.
> Add default values for ranger plugin properties
> -----------------------------------------------
>
> Key: AMBARI-9285
> URL: https://issues.apache.org/jira/browse/AMBARI-9285
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Velmurugan Periasamy
> Assignee: Gautam Borad
> Fix For: 2.0.0
>
>
> {noformat}
> if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.2') >= 0:
> # setting flag value for ranger hdfs plugin
> enable_ranger_hdfs = False
> user_input = config['configurations']['ranger-hdfs-plugin-properties']['ranger-hdfs-plugin-enabled'] <------------------------------- No default value provided
> {noformat}
> That line, and others like it, must make safeguards by checking property existence. Can use a construct like below so that it fails safely.
> {noformat}
> user_input = default('/configurations/ranger-hdfs-plugin-properties/ranger-hdfs-plugin-enabled', 'no')
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)