一个很愚蠢的错误...

很不幸博主在调试过程中也犯了...


问题描述

[INFO] --- exec-maven-plugin:3.0.0:exec (default-cli) @ HdfsClientDemo ---
INFO [org.apache.hadoop.conf.Configuration.deprecation] - session.id is deprecated. Instead, use dfs.metrics.session-id
 INFO [org.apache.hadoop.metrics.jvm.JvmMetrics] - Initializing JVM Metrics with processName=JobTracker, sessionId=
Exception in thread "main" org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory file:/e:/projects/HdfsClientDemo/output already exists

[ERROR] Command execution failed.
Command execution failed.

Command execution failed.Exception in thread “main“ org.apache.hadoop.mapred.FileAlreadyExistsExcept

Command execution failed.Exception in thread “main“ org.apache.hadoop.mapred.FileAlreadyExistsExcept

问题很清晰的!


问题解决

其实就是在输出过程中output文件夹已经存在,导致命令执行过程中被拒绝了!

只需要把output文件夹给删除就好!

希望以后不要再犯这种错误了!!!

相关文章:

  • 2021-11-08
  • 2021-09-11
  • 2021-10-10
  • 2021-11-12
  • 2021-07-23
  • 2022-03-02
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-10-14
  • 2021-04-22
  • 2021-09-09
相关资源
相似解决方案