working on cloudera manager Version: Cloudera Express 5.14.0
i am running hive-on-spark job is running successfully and return the result but after executing successfully yarn application master doesn't release reesource of that job.
i have set the following property for spark and hive in cloudera manager.
(spark.dynamicAllocation.executorIdleTimeout -> 10).
(spark.dynamicAllocation.schedulerBacklogTimeout -> 1)
(spark.dynamicAllocation.initialExecutors -> 1)
(spark.eventLog.enabled -> true)
(spark.master -> yarn-client)
(spark.dynamicAllocation.enabled -> true).
(spark.dynamicAllocation.minExecutors -> 1)
Thank you for posting your query with us.
From your description, I understand that your Hive-on-Spark application is not releasing the resources which are allocated
Could you please help us by providing below information ?
1. How exactly you are checking the resource allocation is not released ? (any sort of screenshot etc., would help)
2. How the job is submitted ( any simple repro steps may also helpful)
I am checking by resource manager web ui *http://master:8088/cluster*
that display all the running and completing job .when i running job with map reduce as execution engine its work perfectly fine.but when running with hive on spark it does not release resource .
Here i am attaching screenshot of yarn manager web ui.
Thanks for your update
Here are the steps which I followed, unfortunately I'm not able to see your attachments
1. Opened "hive" shell
2. "set hive.execution.engine=spark;"
3. Created simple table and ran some insert queries into it (which obviously triggers spark-Yarn job)
4. Checked in RM now you should be able to see the job in "RUNNING" state
5. Notice that your consequent queries wont take much time as this Job will do the work for you
Once you exit out of the hive shell the mentioned job with stop with the status "SUCCEEDED"
Could you please check did I missed anything above ?
Thanks for Reply
I am doing same thing from hue hive shell and run query it display result .but when check in resource manager it running forever and when i again run query form hive shell query start executing but resource manager display
Details for Stage 0 (Attempt 0)
Thanks for reply
I have tried this configuration as well its default value is 6hrs and 12hrs respectively.when i reduce this value to 10 min and 5 min its closed the session of thrift server instead i want to close spark session of job after completion of job. so, can you suggest how to close session of job after completion of spark job on HIVE-ON-SPARK or any patch are available for same.