Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Run Hive from Linux in Tez

avatar
Rising Star

To run Hive query file from Linux Terminal

$hive -f query1.txt

How to run using Tez execution engine?

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Vidya SK

Tez is enabled by default.

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

View solution in original post

8 REPLIES 8

avatar
Master Mentor
@Vidya SK

Tez is enabled by default.

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

avatar
Master Mentor

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

You can see the setting under in Ambari under Hive Configs

avatar
Rising Star

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

avatar
Master Mentor

@Vidya SK

Do you see the accept button?

There is accept button on every answer

avatar
Master Mentor

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

avatar
Super Collaborator

@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

avatar
Rising Star

@pvyas @Neeraj Sabharwal

Thanks Neeraj, Pranay.

avatar
Master Mentor

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