Sridhar
Sridhar

Reputation: 61

Hadoop: Issue with File Overwrite

Not able to override a file on HDFS with below command

hadoop fs -put -f quicktechie.txt Employee

Error message says target file already exists.

Anything wrong with my command?

Upvotes: 0

Views: 1288

Answers (1)

BruceWayne
BruceWayne

Reputation: 3374

You cannot override a file in HDFS. It is purely work on Write Once Read Many. So if you want to override a file, first you have to delete old file.

Upvotes: 1

Related Questions