Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13891 HDFS RBF stabilization phase I
  3. HDFS-13480

RBF: Separate namenodeHeartbeat and routerHeartbeat to different config key

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, HDFS-13891
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Now, if i enable the heartbeat.enable, but i do not want to monitor any namenode, i get an ERROR log like:

      [2018-04-19T14:00:03.057+08:00] [ERROR] federation.router.Router.serviceInit(Router.java 214) [main] : Heartbeat is enabled but there are no namenodes to monitor
      

      and if i disable the heartbeat.enable, we cannot get any mounttable update, because the following logic in Router.javaļ¼š

      if (conf.getBoolean(
              RBFConfigKeys.DFS_ROUTER_HEARTBEAT_ENABLE,
              RBFConfigKeys.DFS_ROUTER_HEARTBEAT_ENABLE_DEFAULT)) {
      
            // Create status updater for each monitored Namenode
            this.namenodeHeartbeatServices = createNamenodeHeartbeatServices();
            for (NamenodeHeartbeatService hearbeatService :
                this.namenodeHeartbeatServices) {
              addService(hearbeatService);
            }
      
            if (this.namenodeHeartbeatServices.isEmpty()) {
              LOG.error("Heartbeat is enabled but there are no namenodes to monitor");
            }
      
            // Periodically update the router state
            this.routerHeartbeatService = new RouterHeartbeatService(this);
            addService(this.routerHeartbeatService);
          }
      

        Attachments

        1. HDFS-13480.001.patch
          4 kB
          Baolong Mao
        2. HDFS-13480.002.patch
          8 kB
          Baolong Mao
        3. HDFS-13480.002.patch
          9 kB
          Baolong Mao
        4. HDFS-13480.003.patch
          9 kB
          Baolong Mao
        5. HDFS-13480.004.patch
          9 kB
          Baolong Mao
        6. HDFS-13480-HDFS-13891-05.patch
          9 kB
          Ayush Saxena
        7. HDFS-13480-HDFS-13891-06.patch
          10 kB
          Ayush Saxena
        8. HDFS-13480-HDFS-13891-07.patch
          10 kB
          Ayush Saxena
        9. HDFS-13480-HDFS-13891-08.patch
          10 kB
          Ayush Saxena

          Activity

            People

            • Assignee:
              ayushtkn Ayush Saxena
              Reporter:
              maobaolong Baolong Mao
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: