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, 2019 in Big Data Hadoop by Esha
885 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, 2019 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, 2019 in Big Data Hadoop by anonymous

edited Jun 4, 2019 by Omkar 7,540 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, 2019 in Big Data Hadoop by Omkar
• 69,040 points
9,823 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,920 points
624 views
+1 vote
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,920 points
5,484 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,920 points
808 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
33,989 views
–1 vote
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,310 points
2,068 views
0 votes
1 answer

Can you please help with Hive Query to get FirstName, MiddleName, LastName and Suffix from FullName in Hive. Thank you

Hey, You can get first name, middle name, ...READ MORE

answered May 15, 2019 in Big Data Hadoop by Gitika
• 33,450 points

edited May 15, 2019 by Gitika 554 views
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, 2019 in Big Data Hadoop by Gitika
• 33,450 points
89 views