一个很愚蠢的错误...
很不幸博主在调试过程中也犯了...
问题描述
[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.
问题很清晰的!
问题解决
其实就是在输出过程中output文件夹已经存在,导致命令执行过程中被拒绝了!
只需要把output文件夹给删除就好!
希望以后不要再犯这种错误了!!!