How to retrieve/get complete HQL hive query from hive,spark and tez?

0 votes
Hi team,

I want to know that if I have an application id and I want to check what hive query was executed for that particular application id, then how I find that hive query using Hive, Tez view, and spark. Is there anything we can know what would be the hql for a particular app id. I know we can see this from the resource manager, but it does not show the complete query .it just shows some part of it.
Jul 11 in Big Data Hadoop by Esha
179 views

1 answer to this question.

0 votes

To get full query running for the application id goto TEZ UI from ambari(there you can see query history)

Steps go to Tez view via ambari:-

1) From the Ambari home page, hover over the top right corner, and select "Tez View"

2) Next, you can either search by application ID or the hive query itself to find your application.

3) Select your application - the entire hive query should be displayed here and also you can see the status of the query.

(or) from hiveserver2.log

You can check hive.exec.scratchdir set in hive-site.xml to know hive query logs location but in general Hive Server2 logs are in /var/log/hive but to retrieve the query from there requires integration of Ambari + Tez.

answered Jul 11 by Yogi

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
2 answers

How to get column names from Hive table?

To get all the columns of a ...READ MORE

answered Jun 4 in Big Data Hadoop by anonymous

edited Jun 4 by Omkar 2,740 views
0 votes
1 answer

How to create a parquet table in hive and store data in it from a hive table?

Please use the code attached below for ...READ MORE

answered Jan 28 in Big Data Hadoop by Omkar
• 67,660 points
3,145 views
0 votes
1 answer

How Impala is fast compared to Hive in terms of query response?

Impala provides faster response as it uses MPP(massively ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,730 points
356 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,730 points
3,379 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,730 points
407 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,870 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,231 views
0 votes
1 answer
0 votes
1 answer

Can hive queries be executed from script files? And how?

Hey, It is possible by using the source ...READ MORE

answered Jun 25 in Big Data Hadoop by Gitika
• 25,360 points
36 views