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

compact_rs not support hostname,port

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.7, 2.5.0, 2.4.3, 2.3.6
    • None
    • shell

    Description

      hbase:010:0> compact_rs 'hadoop-222-149.hfb.odeon.cn,60020'

      ERROR: begin 28, end 27, length 33

      Should have something to do with ServerName.ValueOf(),It has changed from HBASE-24305.

      public static ServerName valueOf(final String serverName) {
        int firstSep = serverName.indexOf(SERVERNAME_SEPARATOR);
        int lastSep = serverName.lastIndexOf(SERVERNAME_SEPARATOR);
        String hostname = serverName.substring(0, firstSep);
        int port = Integer.parseInt(serverName.substring(firstSep + 1, lastSep));
        long startCode = Long.parseLong(serverName.substring(lastSep + 1));
        return valueOf(hostname, port, startCode);
      } 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrzhao Moran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: