[ https://issues.apache.org/jira/browse/IMPALA-13311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877412#comment-17877412 ]
ASF subversion and git services commented on IMPALA-13311: ---------------------------------------------------------- Commit 6493060459a9192b05b95286d800841fcee12108 in impala's branch refs/heads/master from Yubi Lee [ https://gitbox.apache.org/repos/asf?p=impala.git;h=649306045 ] IMPALA-13311: Hive3 INSERT failed by ClassNotFoundException: org.apache.tez.runtime.api.Event correct TEZ_HOME when using apache tez use apache tez 0.10.2 and make hive compatible with it Change-Id: Ia278a87f92fedb96ec20608b5872facc55ae0a3c Reviewed-on: http://gerrit.cloudera.org:8080/21706 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> > Hive3 INSERT failed by ClassNotFoundException: > org.apache.tez.runtime.api.Event > ------------------------------------------------------------------------------- > > Key: IMPALA-13311 > URL: https://issues.apache.org/jira/browse/IMPALA-13311 > Project: IMPALA > Issue Type: Bug > Components: Infrastructure > Reporter: Quanlong Huang > Assignee: YUBI LEE > Priority: Major > > After IMPALA-10408, Apache Hive 3 in the minicluster can't execute INSERT > statement, e.g. > {code} > beeline -u jdbc:hive2://localhost:11050 > 0: jdbc:hive2://localhost:11050> create table if not exists hive_warm_up_tbl > (i int); > 0: jdbc:hive2://localhost:11050> insert overwrite table hive_warm_up_tbl > values (1); > Error: Error running query: java.lang.NoClassDefFoundError: > org/apache/tez/runtime/api/Event (state=,code=0) > {code} > Here is the stacktrace in HS2 logs (logs/cluster/hive-server.log) > {noformat} > 2024-08-20T12:55:41,015 WARN [HiveServer2-Handler-Pool: Thread-57] > thrift.ThriftCLIService: Error executing statement: > org.apache.hive.service.cli.HiveSQLException: Error running query: > java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event > at > org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:208) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:260) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.operation.Operation.run(Operation.java:247) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:541) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:527) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:312) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:562) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1557) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1542) > ~[hive-exec-3.1.3.jar:3.1.3] > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > ~[hive-exec-3.1.3.jar:3.1.3] > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) > ~[hive-service-3.1.3.jar:3.1.3] > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > ~[hive-exec-3.1.3.jar:3.1.3] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > ~[?:1.8.0_362] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > ~[?:1.8.0_362] > at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362] > Caused by: java.lang.NoClassDefFoundError: org/apache/tez/runtime/api/Event > at > org.apache.hadoop.hive.ql.parse.TezCompiler.runRemoveDynamicPruningOptimization(TezCompiler.java:462) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.TezCompiler.optimizeOperatorPlan(TezCompiler.java:170) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.TaskCompiler.compile(TaskCompiler.java:144) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:12320) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:330) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:285) > ~[hive-exec-3.1.3.jar:3.1.3] > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:659) > ~[hive-exec-3.1.3.jar:3.1.3] > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1826) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1773) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1768) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.compileAndRespond(ReExecDriver.java:126) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:197) > ~[hive-service-3.1.3.jar:3.1.3] > ... 15 more > Caused by: java.lang.ClassNotFoundException: org.apache.tez.runtime.api.Event > at java.net.URLClassLoader.findClass(URLClassLoader.java:387) > ~[?:1.8.0_362] > at java.lang.ClassLoader.loadClass(ClassLoader.java:418) > ~[?:1.8.0_362] > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) > ~[?:1.8.0_362] > at java.lang.ClassLoader.loadClass(ClassLoader.java:351) > ~[?:1.8.0_362] > at > org.apache.hadoop.hive.ql.parse.TezCompiler.runRemoveDynamicPruningOptimization(TezCompiler.java:462) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.TezCompiler.optimizeOperatorPlan(TezCompiler.java:170) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.TaskCompiler.compile(TaskCompiler.java:144) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:12320) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:330) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:285) > ~[hive-exec-3.1.3.jar:3.1.3] > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:659) > ~[hive-exec-3.1.3.jar:3.1.3] > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1826) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1773) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1768) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.compileAndRespond(ReExecDriver.java:126) > ~[hive-exec-3.1.3.jar:3.1.3] > at > org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:197) > ~[hive-service-3.1.3.jar:3.1.3] > ... 15 more{noformat} > CC [~eub] -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org