Tartarus0zm commented on PR #19608: URL: https://github.com/apache/flink/pull/19608#issuecomment-1118223620
> > This PR is to solve the problem that the current HiveParserSessionState cannot be initialized under JDK11. > > Can you explain how that helps if Hive doesn't work under Java 11? @MartijnVisser AppClassLoader is a subclass of URLClassLoader in JDK8, but AppClassLoader is no longer a subclass of URLClassLoader in JDK11. The low version Hive SessionState code is like this, ``` final ClassLoader currentLoader = Utilities.createUDFClassLoader((URLClassLoader) parentLoader, new String[]{}); ``` Therefore, running with jdk11 will report an error, versions after 2.3.6 fixed this problem. [HIVE-21584]([https://issues.apache.org/jira/browse/HIVE-21584]) fixed it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org