title: How to copy parquet file and overwrite the old one on HDFS
body: <p>My question is suppose we have two parquet files on HDFS: file1.parquet, and file2.parquet in different paths, and I want to copy file1.parquet to replace file2.parquet. </p>
  
  <p>I used the command <code>hdfs dfs -cp -f /path1/file1.parquet /path2/file2.parqet</code>, there was not error thrown, but the file2.parquet was not changed at all. I have to delete file2.parquet first and then copy file1.parquet.</p>
  
  <p>Any idea? Thanks</p>