Skip to main content
Nil_kharat
Silver ⭐️⭐️
Aug 13, 2021 3:30 PM UTC
Solved

YARN job is Running Slow

Hello Everyone

i am running one YARN job on daily basis ,but today its running little bit slow than yesterday, on the same node other peoples also running the same job but they didn't face any issue regarding the slowness job,

only my job is running slow and its a daily running job

what could be the possible reason behind this?

 

thanks in advance !!

Shifu
ShifuAnswer
Gold ⭐️⭐️
Aug 16, 2021 5:43 AM UTC

Hi @Nil_kharat 

 

If you are running a hive job and if you noticed it is slower than the earlier run then you may need to check few things in the below order.

 

1. Is there any change in the code,
2. Is there any new data load added to the table which is getting processed,
3. Beeline console output where you can see the Hive counters details,
4. Hiveserver2 and Hivemetastore logs to see the compilation and execution time of the faster and slower run.
5. QueryId of the job(to check in HS2 and application logs)
6. Faster and slower run of application logs where identify the slowness.
7. explain <query> for the faster and slower(to see the record change and stats info)


If you are happy with the response mark it as Accept as Solution

8 replies

Shifu
Gold ⭐️⭐️
ShifuAnswer
Gold ⭐️⭐️
Aug 16, 2021 5:43 AM UTC

Hi @Nil_kharat 

 

If you are running a hive job and if you noticed it is slower than the earlier run then you may need to check few things in the below order.

 

1. Is there any change in the code,
2. Is there any new data load added to the table which is getting processed,
3. Beeline console output where you can see the Hive counters details,
4. Hiveserver2 and Hivemetastore logs to see the compilation and execution time of the faster and slower run.
5. QueryId of the job(to check in HS2 and application logs)
6. Faster and slower run of application logs where identify the slowness.
7. explain <query> for the faster and slower(to see the record change and stats info)


If you are happy with the response mark it as Accept as Solution

Translate
Nil_kharat
Silver ⭐️⭐️
Aug 16, 2021 11:33 AM UTC

hi @Shifu I have checked everything , didnt get any solution, some jobs are in ACCEPTED state, how to troubleshoot this accepted state jobs, can we move particular queue, or any other? 

 

 

 

 

Thanks

Translate
Shifu
Gold ⭐️⭐️
Gold ⭐️⭐️
Aug 16, 2021 4:06 PM UTC

Hi @Nil_kharat 

 

If your jobs are at ACCEPTED most probably it is because the AM does not have enough memory to launch in that particular queue.

 

You can click on top of the particular ACCEPTED job to see the detail.
Can you try to increase the Maximum AM Resource(Ambari > Tile Icon > Yarn Queue Manager > Particular queue) to 50% and try to re-run the query and check.

If you are happy with the response mark it as Accept as Solution

Translate