已解决:org.apache.hadoop.fs.FileAlreadyExistsException: Parent path is not a directory: /tmp hadoop-yarn

  • hadoop大数据
  • MapReduce开发

Java程序没有问题,hdfs和yarn进程也没有问题,目录文件没有问题,在调试程序报错:

MapReduce开发程序调试报错:org.apache.hadoop.fs.FileAlreadyExistsException: Parent path is not a directory:/t_apache


删除该报错文件

[root@chensy software]# hadoop fs -rm -r -skipTrash /tmp

Deleted /tmp

已解决

MapReduce开发程序调试报错:org.apache.hadoop.fs.FileAlreadyExistsException: Parent path is not a directory:/t_大数据_02

文件计算结果

MapReduce开发程序调试报错:org.apache.hadoop.fs.FileAlreadyExistsException: Parent path is not a directory:/t_hadoop_03