hadoop - 异常 CreateSymbolicLink 错误 (183) 当文件已存在时无法创建该文件
问题描述
尝试从 Hadoop 附带的 hadoop-mapreduce-examples-3.3.1.jar 运行 wordcount 示例时出现此错误。
Exception message: CreateSymbolicLink error (183): Cannot create a file when that file already exists.
Shell output: 1 file(s) moved.
"Setting up env variables"
"Setting up job resources"
[2021-09-27 16:43:36.455]Container exited with a non-zero exit code 1.
[2021-09-27 16:43:36.455]Container exited with a non-zero exit code 1.
For more detailed output, check the application tracking page: http://DESKTOP-0N6IMAQ:8088/cluster/app/application_1632774426206_0006 Then click on links to logs of each attempt.
. Failing the application.
2021-09-27 16:43:36,780 INFO mapreduce.Job: Counters: 0
这是我提交的行
hadoop jar hadoop-mapreduce-examples-3.3.1.jar wordcount /input.txt /output.txt
解决方案
您的输出文件已经存在。更改输出文件的名称。
hadoop jar hadoop-mapreduce-examples-3.3.1.jar wordcount /input.txt /output2.txt
推荐阅读
- maven - 需要在 Visual Studio 中构建 c++ 项目的 pom.xml 格式
- java - 我想在我的android底部导航栏中垂直居中文本
- javascript - 类/功能组件,内部方法
- c - 如何在C语言中找到约瑟夫斯问题中的消除顺序?
- c++ - 为什么gmock中指向SetArgPointee的void *指针会导致错误
- oracle - 合并 2 个查询并在列中返回一个结果
- python - 如何有效地更新熊猫数据框中的列名?
- amazon-web-services - 从 Visual Studio 2019 上传 AWS Lambda 函数失败
- regex - Perl REGEX 替换每个 ! 与 ~ 仅当被引号包围时
- git - 在构建或发布期间设置配置变量的最佳实践