Emrfs file sync with s3 not working

前端 未结 3 1017
野趣味
野趣味 2021-02-20 08:51

After running a spark job on an Amazon EMR cluster, I deleted the output files directly from s3 and tried to rerun the job again. I received the following error upon trying to w

3条回答
  •  情书的邮戳
    2021-02-20 09:18

    I arrived at this page because I was getting the error "key is marked as directory in metadata but is file in s3" and was very puzzled. I think what happened is that I accidentally created both a file and directory by the same name. By deleting the file it solved my issue:

    aws s3 rm s3://bucket/directory_name_without_trailing_slash
    

提交回复
热议问题