[
https://issues.apache.org/jira/browse/HIVE-27063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HIVE-27063:
----------------------------------
Labels: pull-request-available (was: )
> LDAP+JWT auth forms not supported
> ---------------------------------
>
> Key: HIVE-27063
> URL: https://issues.apache.org/jira/browse/HIVE-27063
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 4.0.0
> Reporter: Naveen Gangam
> Assignee: Naveen Gangam
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In HIVE-25875, support for multiple authentication forms was added for Hive
> Server. In HIVE-25575, support for JWT authentication was added. However,
> setting hive.server2.authentication="JWT,LDAP" will fail with the following
> validation error.
> {noformat}
> <12>1 2023-02-03T09:32:11.018Z hiveserver2-0 hiveserver2 1
> 0393cf91-48f7-49e3-b2b1-b983000d4cd6 [mdc@18060 class="server.HiveServer2"
> level="WARN" thread="main"] Error starting HiveServer2 on attempt 2, will
> retry in 60000ms\rorg.apache.hive.service.ServiceException: Failed to Start
> HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:692)
> at
> org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:1154)
>
> at
> org.apache.hive.service.server.HiveServer2.access$1400(HiveServer2.java:145)
> at
> org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:1503)
>
> at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:1316)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)\r at
> org.apache.hadoop.util.RunJar.run(RunJar.java:318)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:232)\rCaused by:
> java.lang.RuntimeException: Failed to init HttpServer
> at
> org.apache.hive.service.cli.thrift.ThriftHttpCLIService.initServer(ThriftHttpCLIService.java:239)
>
> at
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:235)
>
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 11 more
> Caused by: java.lang.Exception: The authentication types have conflicts:
> LDAP,JWT
> at org.apache.hive.service.auth.AuthType.verifyTypes(AuthType.java:69)
> at org.apache.hive.service.auth.AuthType.<init>(AuthType.java:43)
> org.apache.hive.service.cli.thrift.ThriftHttpServlet.<init>(ThriftHttpServlet.java:124)
>
> at
> org.apache.hive.service.cli.thrift.ThriftHttpCLIService.initServer(ThriftHttpCLIService.java:197)
> ... 13 more
> {noformat}
> We never fixed the AuthType.validateTypes() to support this.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)