Fix put_file_to_hdfs method in hdfs_helper

Use random file name for temp file

Change-Id: I4be62d7c9da6948449f446c6410cc46a14d64021
Closes-bug: #1351276
(cherry picked from commit 9a9b14d8a068c6b32a6b335cc1b006e8cb23c41d)
Merge "Fix put_file_to_hdfs method in hdfs_helper" into stable/icehouse