[ 
https://issues.apache.org/jira/browse/IMPALA-13311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875607#comment-17875607
 ] 

YUBI LEE edited comment on IMPALA-13311 at 8/21/24 6:27 PM:
------------------------------------------------------------

Oh, I think this line should be changed.

https://github.com/apache/impala/commit/ba67660b3a918ae5ec83a15879f5aea32caf1489#diff-fc0aa0b99cb982f212166f43bf69341f2a2a9af15401b3b8d4b09b4a4a3c6225R692

{code}
- export TEZ_HOME="$APACHE_COMPONENTS_HOME/tez-${IMPALA_TEZ_VERSION}"
+ export TEZ_HOME="$APACHE_COMPONENTS_HOME/tez-${IMPALA_TEZ_VERSION}-bin"
{code}



was (Author: eub):
Oh, I think this line should be changed.


{code}
- export TEZ_HOME="$APACHE_COMPONENTS_HOME/tez-${IMPALA_TEZ_VERSION}"
+ export TEZ_HOME="$APACHE_COMPONENTS_HOME/tez-${IMPALA_TEZ_VERSION}-bin"
{code}


> 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
>            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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to