[ https://issues.apache.org/jira/browse/HIVE-26071?focusedWorklogId=763311&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-763311 ]
ASF GitHub Bot logged work on HIVE-26071: ----------------------------------------- Author: ASF GitHub Bot Created on: 28/Apr/22 06:25 Start Date: 28/Apr/22 06:25 Worklog Time Spent: 10m Work Description: dengzhhu653 commented on code in PR #3233: URL: https://github.com/apache/hive/pull/3233#discussion_r860526502 ########## standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: ########## @@ -605,27 +608,44 @@ private THttpClient createHttpClient(URI store, boolean useSSL) throws MetaExcep String path = MetaStoreUtils.getHttpPath(MetastoreConf.getVar(conf, ConfVars.THRIFT_HTTP_PATH)); String httpUrl = (useSSL ? "https://" : "http://") + store.getHost() + ":" + store.getPort() + path; - String user = MetastoreConf.getVar(conf, ConfVars.METASTORE_CLIENT_PLAIN_USERNAME); - if (user == null || user.equals("")) { - try { - LOG.debug("No username passed in config " + ConfVars.METASTORE_CLIENT_PLAIN_USERNAME.getHiveName() + - ". Trying to get the current user from UGI" ); - user = UserGroupInformation.getCurrentUser().getShortUserName(); - } catch (IOException e) { - throw new MetaException("Failed to get client username from UGI"); + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + String authType = MetastoreConf.getAsString(conf, ConfVars.METASTORE_CLIENT_AUTH_MODE).toLowerCase( Review Comment: nit: the var `METASTORE_CLIENT_AUTH_MODE` is strictly allowed to be some modes, maybe we do not need to localize here? Issue Time Tracking ------------------- Worklog Id: (was: 763311) Time Spent: 1.5h (was: 1h 20m) > JWT authentication for Thrift over HTTP in HiveMetaStore > -------------------------------------------------------- > > Key: HIVE-26071 > URL: https://issues.apache.org/jira/browse/HIVE-26071 > Project: Hive > Issue Type: New Feature > Components: Standalone Metastore > Reporter: Sourabh Goyal > Assignee: Sourabh Goyal > Priority: Major > Labels: pull-request-available > Time Spent: 1.5h > Remaining Estimate: 0h > > HIVE-25575 recently added a support for JWT authentication in HS2. This Jira > aims to add the same feature in HMS -- This message was sent by Atlassian Jira (v8.20.7#820007)