[ 
https://issues.apache.org/jira/browse/RANGER-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh resolved RANGER-1807.
-----------------------------------------
    Resolution: Fixed

> Static object  can be used directly at start() method for 
> RangerHdfsAuthorizer class
> ------------------------------------------------------------------------------------
>
>                 Key: RANGER-1807
>                 URL: https://issues.apache.org/jira/browse/RANGER-1807
>             Project: Ranger
>          Issue Type: Improvement
>          Components: plugins
>    Affects Versions: 1.0.0, master
>            Reporter: WangYuan
>            Assignee: WangYuan
>            Priority: Trivial
>             Fix For: 1.0.0
>
>         Attachments: 
> 0001-RANGER-1807-Static-object-can-be-used-directly-at-st.patch
>
>
> At start() method for RangerHdfsAuthorizer class.
> isOptimizeSubAccessAuthEnabled() is a static method,it can used directly .
> {code:title=RangerHdfsAuthorizer.java.java}
> public void start() {
>               if(LOG.isDebugEnabled()) {
>                       LOG.debug("==> RangerHdfsAuthorizer.start()");
>               }
>               RangerHdfsPlugin plugin = new RangerHdfsPlugin();
>               plugin.init();
>               if (plugin.isOptimizeSubAccessAuthEnabled()) {   // if 
> (RangerHdfsPlugin.isOptimizeSubAccessAuthEnabled()) {            
>                       ... ...
>               }
>  
>        public static boolean isOptimizeSubAccessAuthEnabled() {
>               return RangerHdfsPlugin.optimizeSubAccessAuthEnabled;
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to