Support Questions
Find answers, ask questions, and share your expertise

Run Hive from Linux in Tez

Solved Go to solution

Run Hive from Linux in Tez

To run Hive query file from Linux Terminal

$hive -f query1.txt

How to run using Tez execution engine?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Run Hive from Linux in Tez

@Vidya SK

Tez is enabled by default.

you can also use set hive.execution.engine=tez

View solution in original post

8 REPLIES 8

Re: Run Hive from Linux in Tez

@Vidya SK

Tez is enabled by default.

you can also use set hive.execution.engine=tez

View solution in original post

Re: Run Hive from Linux in Tez

1611-screen-shot-2016-01-27-at-75240-pm.png

You can see the setting under in Ambari under Hive Configs

Re: Run Hive from Linux in Tez

@Neeraj Sabharwal How to select the best answer? I am new bee...

Re: Run Hive from Linux in Tez

@Vidya SK

Do you see the accept button?

There is accept button on every answer

Re: Run Hive from Linux in Tez

@Vidya SK Please choose the best answer to close the thread

Re: Run Hive from Linux in Tez

Expert Contributor

@Vidya SK

You can try this way

$hive -hiveconf hive.execution.engine=tez -f query1.txt

(or)

inside query1.txt, you can provide

set hive.execution.engine=tez

Alternatively you can change hive-site.xml to use tez as default execution engine.

Regards

Pranay

Re: Run Hive from Linux in Tez

@pvyas @Neeraj Sabharwal

Thanks Neeraj, Pranay.

Re: Run Hive from Linux in Tez

@Vidya SK As a part of the best practices, please accept the best answer to close the thread.