[ https://issues.apache.org/jira/browse/HIVE-27083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
yutiantian updated HIVE-27083: ------------------------------ Labels: 单元测试 编译 (was: ) > hive开启单元测试编译失败 > -------------- > > Key: HIVE-27083 > URL: https://issues.apache.org/jira/browse/HIVE-27083 > Project: Hive > Issue Type: Bug > Reporter: yutiantian > Priority: Major > Labels: 单元测试, 编译 > > 环境:linux > hive 版本:2.3.7 > 编译hive时,开启hive的单元测试 > 命令为:mvn clean package -Phadoop-2 -Pdist -Dtar -Dmaven.test.failure.ignore=true > 编译过程中,有大量的报错,报错信息如下: > [DEBUG] Forking command line: /bin/sh -c cd > /home/yutiantian/src/spark-hive/ql && > /home/yutiantian/software/jdk1.8.0_181/jre/bin/java -Xmx1024m > -XX:MaxPermSize=256M -jar > /home/yutiantian/src/spark-hive/ql/target/surefire/surefirebooter3681176817358000819.jar > /home/yutiantian/src/spark-hive/ql/target/surefire > 2023-02-15T10-46-58_934-jvmRun1 surefire7006618945989804747tmp > surefire_20094993969999449910tmp > [DEBUG] Fork Channel [1] connected to the client. > [ERROR] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option > MaxPermSize=256M; support was removed in 8.0 > [INFO] Running org.apache.hadoop.hive.ql.exec.TestOperators > [ERROR] Tests run: 7, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: > 67.938 s <<< FAILURE! - in org.apache.hadoop.hive.ql.exec.TestOperators > [ERROR] org.apache.hadoop.hive.ql.exec.TestOperators.testScriptOperator Time > elapsed: 24.728 s <<< ERROR! > java.lang.ExceptionInInitializerError > at > org.apache.hadoop.hive.ql.exec.TestOperators.testScriptOperator(TestOperators.java:216) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at junit.framework.TestCase.runTest(TestCase.java:176) > at junit.framework.TestCase.runBare(TestCase.java:141) > at junit.framework.TestResult$1.protect(TestResult.java:122) > at junit.framework.TestResult.runProtected(TestResult.java:142) > at junit.framework.TestResult.run(TestResult.java:125) > at junit.framework.TestCase.run(TestCase.java:129) > at junit.framework.TestSuite.runTest(TestSuite.java:255) > at junit.framework.TestSuite.run(TestSuite.java:250) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428) > at > org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) > at > org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548) > Caused by: java.lang.RuntimeException: Encountered throwable > at > org.apache.hadoop.hive.ql.exec.TestExecDriver.<clinit>(TestExecDriver.java:149) > ... 22 more > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.RuntimeException: Unable to instantiate > org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient > at > org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:236) > at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:395) > at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:339) > at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:319) > at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:288) > at > org.apache.hadoop.hive.ql.exec.TestExecDriver.<clinit>(TestExecDriver.java:135) > ... 22 more > Caused by: java.lang.RuntimeException: Unable to instantiate > org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient > at > org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1742) > at > org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:83) > at > org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:133) > at > org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104) > at > org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3607) > at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3659) > at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3639) > at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3901) > at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:248) > at > org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231) > ... 27 more > Caused by: java.lang.reflect.InvocationTargetException > 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.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1740) > ... 36 more > Caused by: MetaException(message:The class > "org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. This > means that it either hasnt been enhanced, or that the enhanced version of the > file is not in the CLASSPATH (or is hidden by an unenhanced version), or the > Meta-Data/annotations for the class are not found.) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:83) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:92) > at > org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6909) > at > org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:162) > at > org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70) > ... 41 more > Caused by: MetaException(message:The class > "org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. This > means that it either hasnt been enhanced, or that the enhanced version of the > file is not in the CLASSPATH (or is hidden by an unenhanced version), or the > Meta-Data/annotations for the class are not found.) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:211) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:107) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:79) > ... 45 more > Caused by: > org.datanucleus.api.jdo.exceptions.ClassNotPersistenceCapableException: The > class "org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. > This means that it either hasnt been enhanced, or that the enhanced version > of the file is not in the CLASSPATH (or is hidden by an unenhanced version), > or the Meta-Data/annotations for the class are not found. > NestedThrowables: > org.datanucleus.exceptions.ClassNotPersistableException: The class > "org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. This > means that it either hasnt been enhanced, or that the enhanced version of the > file is not in the CLASSPATH (or is hidden by an unenhanced version), or the > Meta-Data/annotations for the class are not found. > at > org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:473) > at > org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:729) > at > org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:749) > at > org.apache.hadoop.hive.metastore.ObjectStore.createDatabase(ObjectStore.java:682) > at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:101) > at com.sun.proxy.$Proxy27.createDatabase(Unknown Source) > at > org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB_core(HiveMetaStore.java:646) > at > org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:666) > at > org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:431) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:148) > ... 47 more > Caused by: org.datanucleus.exceptions.ClassNotPersistableException: The class > "org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. This > means that it either hasnt been enhanced, or that the enhanced version of the > file is not in the CLASSPATH (or is hidden by an unenhanced version), or the > Meta-Data/annotations for the class are not found. > at > org.datanucleus.ExecutionContextImpl.assertClassPersistable(ExecutionContextImpl.java:5530) > at > org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:1980) > at > org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1923) > at > org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1778) > at > org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217) > at > org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:724) > ... 62 more > [ERROR] org.apache.hadoop.hive.ql.exec.TestOperators.testFetchOperatorContext > Time elapsed: 41.58 s <<< FAILURE! > junit.framework.AssertionFailedError: expected:<0> but was:<40000> > at junit.framework.Assert.fail(Assert.java:57) > at junit.framework.Assert.failNotEquals(Assert.java:329) > at junit.framework.Assert.assertEquals(Assert.java:78) > at junit.framework.Assert.assertEquals(Assert.java:234) > at junit.framework.Assert.assertEquals(Assert.java:241) > at junit.framework.TestCase.assertEquals(TestCase.java:409) > at > org.apache.hadoop.hive.ql.exec.TestOperators.testFetchOperatorContext(TestOperators.java:414) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at junit.framework.TestCase.runTest(TestCase.java:176) > at junit.framework.TestCase.runBare(TestCase.java:141) > at junit.framework.TestResult$1.protect(TestResult.java:122) > at junit.framework.TestResult.runProtected(TestResult.java:142) > at junit.framework.TestResult.run(TestResult.java:125) > at junit.framework.TestCase.run(TestCase.java:129) > at junit.framework.TestSuite.runTest(TestSuite.java:255) > at junit.framework.TestSuite.run(TestSuite.java:250) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428) > at > org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) > at > org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548) > [DEBUG] Closing the fork 1 after saying GoodBye. > [DEBUG] Determined Maven Process ID 67284 > [DEBUG] Fork Channel [1] connection string 'pipe://1' for the implementation > class org.apache.maven.plugin.surefire.extensions.LegacyForkChannel > > 编译部署hive,启动hive server 时,报错信息如下: > 2023-02-15T09:58:19,114 ERROR [main] metastore.RetryingHMSHandler: HMSHandler > Fatal error: MetaException(message:The class > "org.apache.hadoop.hive.metastore.model.MR > ole" is not persistable. This means that it either hasnt been enhanced, or > that the enhanced version of the file is not in the CLASSPATH (or is hidden > by an unenhanc > ed version), or the Meta-Data/annotations for the class are not found.) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:211) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:107) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:79) > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:92) > at > org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6909) > at > org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:162) > at > org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70) > at > org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3901) > at > org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:248) > at > org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231) > at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:395) > at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:339) > at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:319) > at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:288) > at > org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:166) > at > org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:607) > at > org.apache.hive.service.server.HiveServer2.access$700(HiveServer2.java:100) > at > org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:855) > at > org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:724) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.apache.hadoop.util.RunJar.run(RunJar.java:226) > at org.apache.hadoop.util.RunJar.main(RunJar.java:141) > 2023-02-15T09:58:17,110 WARN [main] metastore.HiveMetaStore: Retrying > creating default roles after error: The class > "org.apache.hadoop.hive.metastore.model.MRole" i > s not persistable. This means that it either hasnt been enhanced, or that the > enhanced version of the file is not in the CLASSPATH (or is hidden by an > unenhanced ver > sion), or the Meta-Data/annotations for the class are not found. > org.datanucleus.api.jdo.exceptions.ClassNotPersistenceCapableException: The > class "org.apache.hadoop.hive.metastore.model.MRole" is not persistable. This > means that > it either hasnt been enhanced, or that the enhanced version of the file is > not in the CLASSPATH (or is hidden by an unenhanced version), or the > Meta-Data/annotations > for the class are not found. > at > org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:473) > ~[datanucleus-api-jdo-4.2.4.jar:?] > at > org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:729) > ~[datanucleus-api-jdo-4.2.4.jar:?] > at > org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:749) > ~[datanucleus-api-jdo-4.2.4.jar:?] > at > org.apache.hadoop.hive.metastore.ObjectStore.addRole(ObjectStore.java:4095) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[?:?] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_40] > at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40] > at > org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:101) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at com.sun.proxy.$Proxy34.addRole(Unknown Source) ~[?:?] > at > org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultRoles_core(HiveMetaStore.java:698) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultRoles(HiveMetaStore.java:687) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:432) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_40] > at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40] > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:148) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:107) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:79) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:92) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6909) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:162) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at sun.reflect.GeneratedConstructorAccessor34.newInstance(Unknown > Source) ~[?:?] > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > ~[?:1.8.0_40] > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > ~[?:1.8.0_40] > at > org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1740) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:83) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:133) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3607) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3659) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3639) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3901) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:248) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:395) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:339) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:319) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:288) > ~[hive-exec-2.3.7.2.jar:2.3.7.2] > at > org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:166) > ~[hive-service-2.3.7.2.jar:2.3.7.2] > at > org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:607) > ~[hive-service-2.3.7.2.jar:2.3.7.2] > at > org.apache.hive.service.server.HiveServer2.access$700(HiveServer2.java:100) > ~[hive-service-2.3.7.2.jar:2.3.7.2] > at > org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:855) > ~[hive-service-2.3.7.2.jar:2.3.7.2] > at > org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:724) > ~[hive-service-2.3.7.2.jar:2.3.7.2] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:1.8.0_40] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:1.8.0_40] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_40] > at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_40] > at org.apache.hadoop.util.RunJar.run(RunJar.java:226) > ~[hadoop-common-2.7.2.23.jar:?] > at org.apache.hadoop.util.RunJar.main(RunJar.java:141) > ~[hadoop-common-2.7.2.23.jar:?] > Caused by: org.datanucleus.exceptions.ClassNotPersistableException: The class > "org.apache.hadoop.hive.metastore.model.MRole" is not persistable. This means > that it e > ither hasnt been enhanced, or that the enhanced version of the file is not in > the CLASSPATH (or is hidden by an unenhanced version), or the > Meta-Data/annotations for > the class are not found. > at > org.datanucleus.ExecutionContextImpl.assertClassPersistable(ExecutionContextImpl.java:5530) > ~[datanucleus-core-4.1.17.jar:?] > at > org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:1980) > ~[datanucleus-core-4.1.17.jar:?] > at > org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1923) > ~[datanucleus-core-4.1.17.jar:?] > at > org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1778) > ~[datanucleus-core-4.1.17.jar:?] > at > org.datanucleus.ExecutionContextThreadedImpl.persistObject(ExecutionContextThreadedImpl.java:217) > ~[datanucleus-core-4.1.17.jar:?] > at > org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:724) > ~[datanucleus-api-jdo-4.2.4.jar:?] > ... 48 more > 2023-02-15T09:58:17,111 ERROR [main] metastore.RetryingHMSHandler: Retrying > HMSHandler after 2000 ms (attempt 10 of 10) with error: > org.datanucleus.api.jdo.exception > 想请教社区大佬,hive开启单元测试,进行编译,为什么一直报错呢,是对编译环境有要求吗?已经困扰了好多天,也试了很多的方法,始终没有任何进展和思路,希望得到大佬们的提点。 -- This message was sent by Atlassian Jira (v8.20.10#820010)