Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- breaks
-
HBASE-22398 Nightly build for master and branch-2 are failing
- Resolved
- is depended upon by
-
HBASE-22184 [security] Support get|set LogLevel in HTTPS mode
- Resolved
- is superceded by
-
HBASE-22240 [backport] HBASE-19762 Fix Checkstyle errors in hbase-http
- Resolved
- relates to
-
HBASE-26074 testLogLevelByHttps/testLogLevelByHttpsWithSpnego consistently failing on branch-1
- Resolved
- links to