Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14772

RBF: hdfs-rbf-site.xml can't be loaded automatically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • rbf
    • RBF

    Description

      ISSUE:
      hdfs-rbf-site.xml can't be loaded automatically
      WHY:
      Currently the code is

      RBFConfigKeys.java
        static {
          Configuration.addDefaultResource(HDFS_RBF_SITE_XML);
        }
      

      But it will never be executed unless we explicitly load the class.
      HOW TO FIX:
      Reference to class HdfsConfiguration, make a method

      RBFConfigKeys.java
        public static void init() {
        }
      

      and call it in other class.

      Attachments

        1. HDFS-14772.004.patch
          2 kB
          Yuxuan Wang
        2. HDFS-14772.003.patch
          2 kB
          Yuxuan Wang
        3. HDFS-14772.002.patch
          0.7 kB
          Yuxuan Wang
        4. HDFS-14772.001.patch
          3 kB
          Yuxuan Wang

        Activity

          People

            John Smith Yuxuan Wang
            John Smith Yuxuan Wang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: