Fix put_file_to_hdfs method in hdfs_helper

Use random file name for temp file

Change-Id: I4be62d7c9da6948449f446c6410cc46a14d64021
Closes-bug: #1351276
Merge "Fix put_file_to_hdfs method in hdfs_helper"