[ https://issues.apache.org/jira/browse/HIVE-26592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630518#comment-17630518 ]
Raghav Aggarwal commented on HIVE-26592: ---------------------------------------- [~ghanko] , I am also facing this issue. Can you please elaborate how you resolved it. If possible can you provide the maven command to rebuild it. > TestMiniLlapLocalCliDriver test runs throw NoSuchMethodError since log4j 2.18 > upgrade > ------------------------------------------------------------------------------------- > > Key: HIVE-26592 > URL: https://issues.apache.org/jira/browse/HIVE-26592 > Project: Hive > Issue Type: Bug > Reporter: Hankó Gergely > Assignee: Hankó Gergely > Priority: Major > > The issue exists since > [https://github.com/apache/hive/commit/c9e7f5dd6191636232921279acc1a5dd5a6fcaff] > {code:java} > [INFO] Running org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.03 > s <<< FAILURE! - in org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver > [ERROR] org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver Time elapsed: > 8.028 s <<< ERROR! > java.lang.NoSuchMethodError: > org.apache.logging.log4j.util.StackLocatorUtil.getCallerClassLoader(I)Ljava/lang/ClassLoader; > at org.apache.log4j.Logger.getLogger(Logger.java:35) > at > org.apache.hadoop.hive.ql.udf.esri.ST_GeometryRelational.<clinit>(ST_GeometryRelational.java:36) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at > org.apache.hive.common.util.ReflectionUtil.newInstance(ReflectionUtil.java:83) > at > org.apache.hadoop.hive.ql.exec.Registry.registerGenericUDF(Registry.java:193) > at > org.apache.hadoop.hive.ql.exec.Registry.registerFunction(Registry.java:128) > at > org.apache.hadoop.hive.ql.exec.Registry.registerFunction(Registry.java:115) > at > org.apache.hadoop.hive.ql.exec.FunctionRegistry.<clinit>(FunctionRegistry.java:689) > at > org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:345) > at > org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:325) > at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:551) > at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:443) > at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:430) > at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:386) > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.createHiveDB(BaseSemanticAnalyzer.java:291) > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.<init>(BaseSemanticAnalyzer.java:269) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.<init>(SemanticAnalyzer.java:477) > at org.apache.hadoop.hive.ql.QTestUtil.postInit(QTestUtil.java:565) > at > org.apache.hadoop.hive.cli.control.CliAdapter$1$1.evaluate(CliAdapter.java:88) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) > at org.junit.runners.ParentRunner.run(ParentRunner.java:413) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160) > at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334) > at > org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)[INFO] > > [INFO] Results: > [INFO] > [ERROR] Errors: > [ERROR] > TestMiniLlapLocalCliDriver.org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver > » NoSuchMethod > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)