Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8640

ServerName in master may not initialize with the configured ipc address of hbase.master.ipc.address

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.2, 0.94.9
    • master
    • None
    • Reviewed

    Description

      We are starting rpc server with default interface hostname or configured ipc address

          this.rpcServer = HBaseRPC.getServer(this,
            new Class<?>[]{HMasterInterface.class, HMasterRegionInterface.class},
              initialIsa.getHostName(), // This is bindAddress if set else it's hostname
              initialIsa.getPort(),
              numHandlers,
              0, // we dont use high priority handlers in master
              conf.getBoolean("hbase.rpc.verbose", false), conf,
              0); // this is a DNC w/o high priority handlers
      

      But we are initialzing servername with default hostname always master znode also have this hostname.

          String hostname = Strings.domainNamePointerToHostName(DNS.getDefaultHost(
            conf.get("hbase.master.dns.interface", "default"),
            conf.get("hbase.master.dns.nameserver", "default")));
      	...
          this.serverName = new ServerName(hostname,
            this.isa.getPort(), System.currentTimeMillis());
      

      If both default interface hostname and configured ipc address are not same clients will get MasterNotRunningException.

      Attachments

        1. HBASE-8640.patch
          2 kB
          rajeshbabu
        2. HBASE-8640_94.patch
          2 kB
          rajeshbabu

        Activity

          People

            rajesh23 rajeshbabu
            rajesh23 rajeshbabu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: