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

Yuxuan Wang commented on HDFS-14772:
------------------------------------

[~surendrasingh] [~tasanuma] [~elgoiri] Thanks for your comments. Add a new 
patch.
 Do we need remove the code here?
{code:title=RBFConfigKeys.java|borderStyle=solid}
  static {
    Configuration.addDefaultResource(HDFS_RBF_SITE_XML);
  }
{code}

> RBF: hdfs-rbf-site.xml can't be loaded automatically
> ----------------------------------------------------
>
>                 Key: HDFS-14772
>                 URL: https://issues.apache.org/jira/browse/HDFS-14772
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>            Reporter: Yuxuan Wang
>            Assignee: Yuxuan Wang
>            Priority: Major
>              Labels: RBF
>         Attachments: HDFS-14772.001.patch, HDFS-14772.002.patch
>
>
> ISSUE:
> hdfs-rbf-site.xml can't be loaded automatically
> WHY:
> Currently the code is 
> {code:title=RBFConfigKeys.java|borderStyle=solid}
>   static {
>     Configuration.addDefaultResource(HDFS_RBF_SITE_XML);
>   }
> {code}
> But it will never be executed unless we explicitly load the class.
> HOW TO FIX:
> Reference to class *HdfsConfiguration*, make a method
> {code:title=RBFConfigKeys.java|borderStyle=solid}
>   public static void init() {
>   }
> {code}
> and call it in other class.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to