Solution:
Go to Ambari Hive Configs page.
Then find Custom hive-site
Add following arguments:
hive.downloaded.resources.dir=/tmp/hive/${hive.session.id}_resources
Then save the modification and do a Rolling Restart of related component.
We can delete all ages {session_id}_resources folder under /tmp, and start a hive client, run some SQL, then check the new session folder will be generated in /tmp/hive/ folder.