Hadoop 伪分布式环境时运行wordcount程序,之前已经运行过一次,再次将input文件夹中的内容上传至HDFS时会出现重复,但是还是可以上传成功。但是当再次运行wordcount程序时就会报错:

FileAlreadyExistsException: Output directory output already exists  解决办法

 

可以看到导致错误的原因时HDFS中的output文件夹已经存在了,所以必须要删除。(因为outout文件夹是由hadoop自动生成的,所以会报错)

于是查看HDFS:

FileAlreadyExistsException: Output directory output already exists  解决办法

 

删除output文件夹:

FileAlreadyExistsException: Output directory output already exists  解决办法

 

问题解决:

FileAlreadyExistsException: Output directory output already exists  解决办法

 

FileAlreadyExistsException: Output directory output already exists  解决办法

相关文章:

  • 2021-04-28
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2021-07-16
  • 2021-11-23
  • 2022-12-23
  • 2021-11-22
  • 2021-05-21
  • 2021-08-26
相关资源
相似解决方案