You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yuxuan Wang (Jira)" <ji...@apache.org> on 2019/08/23 13:00:00 UTC

[jira] [Updated] (HDFS-14772) RBF: hdfs-rbf-site.xml can't be loaded automatically

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

Yuxuan Wang updated HDFS-14772:
-------------------------------
    Description: 
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 HdfsConfiguration() {
    super();
  }
}
and call it in other class.
        Summary: RBF: hdfs-rbf-site.xml can't be loaded automatically  (was: RBF)

> 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
>
> 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 HdfsConfiguration() {
>     super();
>   }
> }
> and call it in other class.



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

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