Stamatis Zampetakis created HIVE-27849:
------------------------------------------
Summary: Replication tests using ivy fail after the upgrade to
2.5.2
Key: HIVE-27849
URL: https://issues.apache.org/jira/browse/HIVE-27849
Project: Hive
Issue Type: Bug
Reporter: Stamatis Zampetakis
Assignee: Stamatis Zampetakis
The tests inside TestReplAcrossInstancesWithJsonMessageFormat and
TestReplicationScenariosAcrossInstances that are making some use of ivy fail
after the upgrade of the latter to 2.5.2 (HIVE-27824).
The stacktrace from some failures is outlined below.
{noformat}
2023-11-03T09:18:23,132 ERROR [main] exec.FunctionRegistry: Unable to load
resources for
testbootstrapreplloadretryafterfailureforpartitions_1699028290779.testfunctionone:java.text.ParseException:
failed to load settings from
jar:file:/home/stamatis/.m2/repository/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml:
Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not
recognized.
java.text.ParseException: failed to load settings from
jar:file:/home/stamatis/.m2/repository/org/codehaus/groovy/groovy-all/2.4.21/groovy-all-2.4.21.jar!/groovy/grape/defaultGrapeConfig.xml:
Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not
recognized.
at
org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
~[ivy-2.5.2.jar:2.5.2]
at
org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:147)
~[ivy-2.5.2.jar:2.5.2]
at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:415)
~[ivy-2.5.2.jar:2.5.2]
at org.apache.ivy.core.settings.IvySettings$load$0.call(Unknown Source)
~[?:?]
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
~[groovy-all-2.4.21.jar:2.4.21]
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
~[groovy-all-2.4.21.jar:2.4.21]
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
~[groovy-all-2.4.21.jar:2.4.21]
at groovy.grape.GrapeIvy.<init>(GrapeIvy.groovy:100)
~[groovy-all-2.4.21.jar:2.4.21]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[?:1.8.0_261]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
~[?:1.8.0_261]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[?:1.8.0_261]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
~[?:1.8.0_261]
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_261]
at groovy.grape.Grape.getInstance(Grape.java:121)
~[groovy-all-2.4.21.jar:2.4.21]
at groovy.grape.Grape.resolve(Grape.java:194)
~[groovy-all-2.4.21.jar:2.4.21]
at groovy.grape.Grape.resolve(Grape.java:188)
~[groovy-all-2.4.21.jar:2.4.21]
at
org.apache.hadoop.hive.ql.util.DependencyResolver.grab(DependencyResolver.java:176)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.util.DependencyResolver.downloadDependencies(DependencyResolver.java:97)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.util.ResourceDownloader.resolveAndDownloadInternal(ResourceDownloader.java:88)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.util.ResourceDownloader.resolveAndDownload(ResourceDownloader.java:76)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.session.SessionState.resolveAndDownload(SessionState.java:1661)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.session.SessionState.add_resources(SessionState.java:1613)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.session.SessionState.add_resources(SessionState.java:1599)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.exec.FunctionUtils.addFunctionResources(FunctionUtils.java:85)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.exec.Registry.registerToSessionRegistry(Registry.java:693)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.exec.Registry.registerPermanentFunction(Registry.java:317)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerPermanentFunction(FunctionRegistry.java:1663)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.ddl.function.create.CreateFunctionOperation.registerFunction(CreateFunctionOperation.java:175)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.ddl.function.create.CreateFunctionOperation.createPermanentFunction(CreateFunctionOperation.java:113)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.ddl.function.create.CreateFunctionOperation.execute(CreateFunctionOperation.java:60)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.ddl.DDLTask.execute(DDLTask.java:84)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:105)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Executor.launchTask(Executor.java:354)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Executor.launchTasks(Executor.java:327)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Executor.runTasks(Executor.java:244)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Executor.execute(Executor.java:105)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:367)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:205)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:154)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:149)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:185)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:228)
~[hive-exec-4.0.0-beta-2-SNAPSHOT.jar:4.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hive.ql.parse.WarehouseInstance.run(WarehouseInstance.java:236)
~[test-classes/:?]
at
org.apache.hadoop.hive.ql.parse.TestReplicationScenariosAcrossInstances.testBootstrapReplLoadRetryAfterFailureForPartitions(TestReplicationScenariosAcrossInstances.java:1411)
~[test-classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_261]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_261]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_261]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261]
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
~[junit-4.13.2.jar:4.13.2]
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
~[junit-4.13.2.jar:4.13.2]
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
~[junit-4.13.2.jar:4.13.2]
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
~[junit-4.13.2.jar:4.13.2]
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
~[surefire-junit4-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
~[surefire-junit4-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
~[surefire-junit4-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
~[surefire-junit4-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:377)
~[surefire-booter-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:138)
~[surefire-booter-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:465)
~[surefire-booter-3.0.0-M4.jar:3.0.0-M4]
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:451)
~[surefire-booter-3.0.0-M4.jar:3.0.0-M4]
Caused by: org.xml.sax.SAXNotRecognizedException: Property
'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.getProperty(Unknown
Source) ~[xercesImpl-2.12.2.jar:?]
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(Unknown Source)
~[xercesImpl-2.12.2.jar:?]
at org.apache.ivy.util.XMLHelper.newSAXParser(XMLHelper.java:92)
~[ivy-2.5.2.jar:2.5.2]
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:170)
~[ivy-2.5.2.jar:2.5.2]
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:132)
~[ivy-2.5.2.jar:2.5.2]
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:122)
~[ivy-2.5.2.jar:2.5.2]
at org.apache.ivy.util.XMLHelper.parse(XMLHelper.java:117)
~[ivy-2.5.2.jar:2.5.2]
at
org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:154)
~[ivy-2.5.2.jar:2.5.2]
... 77 more
{noformat}
The 2.5.2 version is not fully compatible with the replication tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)