Using tempfile script for Hive add partition queries.

Change-Id: Ib7de34fd718e7c01fb47f37a1427667b97323fdd