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

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, HDFS-13891
    • None
    • None
    • 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-HDFS-13891-08.patch
          10 kB
          Ayush Saxena
        2. HDFS-13480-HDFS-13891-07.patch
          10 kB
          Ayush Saxena
        3. HDFS-13480-HDFS-13891-06.patch
          10 kB
          Ayush Saxena
        4. HDFS-13480-HDFS-13891-05.patch
          9 kB
          Ayush Saxena
        5. HDFS-13480.004.patch
          9 kB
          Baolong Mao
        6. HDFS-13480.003.patch
          9 kB
          Baolong Mao
        7. HDFS-13480.002.patch
          9 kB
          Baolong Mao
        8. HDFS-13480.002.patch
          8 kB
          Baolong Mao
        9. HDFS-13480.001.patch
          4 kB
          Baolong Mao

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: