added timeout
only upload files once to hdfs