You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/05/14 08:58:00 UTC
[jira] [Comment Edited] (HBASE-21048) Get LogLevel is not working
from console in secure environment
[ https://issues.apache.org/jira/browse/HBASE-21048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839221#comment-16839221 ]
Wei-Chiu Chuang edited comment on HBASE-21048 at 5/14/19 8:57 AM:
------------------------------------------------------------------
Thanks all.
Looking at the Hadoop code and HBase code, it would seem the most convenient to simply remove the call to UGI.logoutUserFromKeytab. This is a test code and this isn't a problem not to log out.
Attach an addendum patch [^HBASE-21048.branch-1.4.001.patch] to do just that. I manually tested it locally against Hadoop 2.7.1
was (Author: jojochuang):
Thanks all.
Looking at the Hadoop code and HBase code, it would seem the most convenient to simply remove the call to UGI.logoutUserFromKeytab. This is a test code and this isn't a problem not to log out.
Attached a patch [^HBASE-21048.branch-1.4.001.patch] to do just that. I manually tested it locally against Hadoop 2.7.1
> Get LogLevel is not working from console in secure environment
> --------------------------------------------------------------
>
> Key: HBASE-21048
> URL: https://issues.apache.org/jira/browse/HBASE-21048
> Project: HBase
> Issue Type: Bug
> Reporter: Chandra Sekhar
> Assignee: Wei-Chiu Chuang
> Priority: Major
> Labels: security
> Fix For: 3.0.0, 1.5.0, 1.4.10, 2.3.0
>
> Attachments: HBASE-21048.001.patch, HBASE-21048.branch-1.001.patch, HBASE-21048.branch-1.002.patch, HBASE-21048.branch-1.4.001.patch, HBASE-21048.master.001.patch, HBASE-21048.master.002.patch, HBASE-21048.master.003.patch, HBASE-21048.master.004.patch, HBASE-21048.master.005.patch, HBASE-21048.master.006.patch, HBASE-21048.master.007.patch, HBASE-21048.master.008.patch
>
>
> When we try to get log level of specific package in secure environment, getting SocketException.
> {code:java}
> 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
> {code}
> It is trying to connect http instead of https
> code snippet that handling only http in *LogLevel.java*
> {code: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);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)