Skip to content

HIVE-29086: Fix ClassNotFoundException: org.apache.tez.dag.DAG when engine is mr #5968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Abyss-lord
Copy link

@Abyss-lord Abyss-lord commented Jul 13, 2025

What changes were proposed in this pull request?

Fix ClassNotFoundException: org.apache.tez.dag.DAG when engine is mr

Why are the changes needed?

fix: HIVE-29086

Does this PR introduce any user-facing change?

no

How was this patch tested?

local test.

…ngine is mr

Fix ClassNotFoundException: org.apache.tez.dag.DAG when engine is mr
Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put the trace in the ticket & a sample query to reproduce this

@@ -396,7 +396,10 @@ public void handle(Signal signal) {

// First, kill any running MR jobs
HadoopJobExecHelper.killRunningJobs();
TezJobExecHelper.killRunningJobs();
//when engine is not tez,it will throw ClassNotFoundException: org.apache.tez.dag.DAG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment isn't required

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

@@ -396,7 +396,10 @@ public void handle(Signal signal) {

// First, kill any running MR jobs
HadoopJobExecHelper.killRunningJobs();
TezJobExecHelper.killRunningJobs();
//when engine is not tez,it will throw ClassNotFoundException: org.apache.tez.dag.DAG
if ("tez".equalsIgnoreCase(conf.get("hive.execution.engine"))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it to

"tez".equalsIgnoreCase(HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_EXECUTION_ENGINE))

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

@Abyss-lord
Copy link
Author

Can you put the trace in the ticket & a sample query to reproduce this

I currently don’t have access to the trace — it’s on my work laptop. I’ll retrieve it first thing Monday and share both the trace and a sample query to help reproduce the issue.

Thanks for your patience!

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants