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

Get LogLevel is not working from console in secure environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 1.4.10, 2.3.0
    • None
    • Reviewed
    • Support get|set LogLevel in secure(kerberized) environment.

    Description

      When we try to get log level of specific package in secure environment, getting SocketException.

      hbase/master/bin# ./hbase org.apache.hadoop.hbase.http.log.LogLevel -getlevel host-xxxx:16010 org.apache.hadoop.hbase
      Connecting to http://host-xxxx:16010/logLevel?log=org.apache.hadoop.hbase
      java.net.SocketException: Unexpected end of file from server
      

      It is trying to connect http instead of https 

      code snippet that handling only http in LogLevel.java

       public static void main(String[] args) {
          if (args.length == 3 && "-getlevel".equals(args[0])) {
            process("http://" + args[1] + "/logLevel?log=" + args[2]);
            return;
          }
          else if (args.length == 4 && "-setlevel".equals(args[0])) {
            process("http://" + args[1] + "/logLevel?log=" + args[2]
                    + "&level=" + args[3]);
            return;
          }
      
          System.err.println(USAGES);
          System.exit(-1);
        }
      

      Attachments

        1. HBASE-21048.master.008.patch
          24 kB
          Wei-Chiu Chuang
        2. HBASE-21048.master.007.patch
          24 kB
          Wei-Chiu Chuang
        3. HBASE-21048.master.006.patch
          24 kB
          Wei-Chiu Chuang
        4. HBASE-21048.master.005.patch
          32 kB
          Wei-Chiu Chuang
        5. HBASE-21048.master.004.patch
          32 kB
          Wei-Chiu Chuang
        6. HBASE-21048.master.003.patch
          32 kB
          Wei-Chiu Chuang
        7. HBASE-21048.master.002.patch
          32 kB
          Wei-Chiu Chuang
        8. HBASE-21048.master.001.patch
          32 kB
          Wei-Chiu Chuang
        9. HBASE-21048.branch-1.4.001.patch
          0.8 kB
          Wei-Chiu Chuang
        10. HBASE-21048.branch-1.002.patch
          25 kB
          Wei-Chiu Chuang
        11. HBASE-21048.branch-1.001.patch
          25 kB
          Wei-Chiu Chuang
        12. HBASE-21048.001.patch
          31 kB
          Wei-Chiu Chuang

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              chandrasekharn Chandra Sekhar
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: